mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-10-29 06:18:34 +01:00
Update local_comms.js
This commit is contained in:
@@ -425,6 +425,7 @@ function Database(){
|
|||||||
let txn = this.env.beginTxn();
|
let txn = this.env.beginTxn();
|
||||||
let blockData = global.protos.Block.decode(txn.getBinary(this.blockDB, blockId));
|
let blockData = global.protos.Block.decode(txn.getBinary(this.blockDB, blockId));
|
||||||
blockData.valid = false;
|
blockData.valid = false;
|
||||||
|
blockData.unlocked = true;
|
||||||
txn.putBinary(this.blockDB, blockId, global.protos.Block.encode(blockData));
|
txn.putBinary(this.blockDB, blockId, global.protos.Block.encode(blockData));
|
||||||
txn.commit();
|
txn.commit();
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user