Commit dde59deea46cd600f319fa2ec8e88988386c3466
remove refernce-map
wanderer committed on 4/4/2018, 1:10:58 AMParent: 6bec2d3a3d15d81d1e83f333c1c5aedacea8a0ed
Files changed
index.js | changed |
package-lock.json | changed |
package.json | changed |
index.js | ||
---|---|---|
@@ -32,8 +32,13 @@ | ||
32 | 32 | } |
33 | 33 | this.scheduler.queue(messages) |
34 | 34 | } |
35 | 35 | |
36 | + /** | |
37 | + * loads an actor from the tree given its id | |
38 | + * @param {ID} id | |
39 | + * @returns {Promise<Actor>} | |
40 | + */ | |
36 | 41 | async loadActor (id) { |
37 | 42 | const state = await this.tree.get(id.id, true) |
38 | 43 | const [code, storage] = await Promise.all([ |
39 | 44 | this.tree.graph.get(state.node, '1'), |
@@ -112,8 +117,11 @@ | ||
112 | 117 | await this.tree.set(Buffer.from([0]), this.nonce) |
113 | 118 | return this.tree.flush() |
114 | 119 | } |
115 | 120 | |
121 | + /** | |
122 | + * set the state root | |
123 | + */ | |
116 | 124 | async setStateRoot (stateRoot) { |
117 | 125 | this.tree.root = stateRoot |
118 | 126 | const node = await this.tree.get(Buffer.from([0])) |
119 | 127 | this.nonce = node.value |
package-lock.json | ||
---|---|---|
The diff is too large to show. Use a local git client to view these changes. Old file size: 365394 bytes New file size: 365133 bytes |
package.json | ||
---|---|---|
@@ -33,9 +33,8 @@ | ||
33 | 33 | "binary-search-insert": "^1.0.3", |
34 | 34 | "borc": "git+https://github.com:dignifiedquire/borc.git#fix/nested-array", |
35 | 35 | "events": "^2.0.0", |
36 | 36 | "primea-objects": "0.0.3", |
37 | - "reference-map": "^1.2.4", | |
38 | 37 | "safe-buffer": "^5.1.1" |
39 | 38 | }, |
40 | 39 | "devDependencies": { |
41 | 40 | "coveralls": "^3.0.0", |
Built with git-ssb-web