batch merkle tree creation

This commit is contained in:
Alexey 2019-07-11 17:04:36 +03:00
parent 65fd0202c5
commit ea51af1512
3 changed files with 77 additions and 12 deletions

View file

@ -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;
}