mirror of
https://github.com/tornadocash/tornado-core.git
synced 2025-05-03 14:55:17 -04:00
batch merkle tree creation
This commit is contained in:
parent
65fd0202c5
commit
ea51af1512
3 changed files with 77 additions and 12 deletions
|
@ -19,6 +19,9 @@ class JsStorage {
|
|||
}
|
||||
|
||||
put(key, value) {
|
||||
if (key === undefined || value === undefined) {
|
||||
throw Error('key or value is undefined')
|
||||
}
|
||||
this.db[key] = value;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue