git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit dde59deea46cd600f319fa2ec8e88988386c3466

remove refernce-map

wanderer committed on 4/4/2018, 1:10:58 AM
Parent: 6bec2d3a3d15d81d1e83f333c1c5aedacea8a0ed

Files changed

index.jschanged
package-lock.jsonchanged
package.jsonchanged
index.jsView
@@ -32,8 +32,13 @@
3232 }
3333 this.scheduler.queue(messages)
3434 }
3535
36+ /**
37+ * loads an actor from the tree given its id
38+ * @param {ID} id
39+ * @returns {Promise<Actor>}
40+ */
3641 async loadActor (id) {
3742 const state = await this.tree.get(id.id, true)
3843 const [code, storage] = await Promise.all([
3944 this.tree.graph.get(state.node, '1'),
@@ -112,8 +117,11 @@
112117 await this.tree.set(Buffer.from([0]), this.nonce)
113118 return this.tree.flush()
114119 }
115120
121+ /**
122+ * set the state root
123+ */
116124 async setStateRoot (stateRoot) {
117125 this.tree.root = stateRoot
118126 const node = await this.tree.get(Buffer.from([0]))
119127 this.nonce = node.value
package-lock.jsonView
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.jsonView
@@ -33,9 +33,8 @@
3333 "binary-search-insert": "^1.0.3",
3434 "borc": "git+https://github.com:dignifiedquire/borc.git#fix/nested-array",
3535 "events": "^2.0.0",
3636 "primea-objects": "0.0.3",
37- "reference-map": "^1.2.4",
3837 "safe-buffer": "^5.1.1"
3938 },
4039 "devDependencies": {
4140 "coveralls": "^3.0.0",

Built with git-ssb-web