Update local_comms.js

This commit is contained in:
Snipa22 2017-11-27 11:23:43 -08:00 committed by GitHub
parent 5d6cf0e81d
commit bfc6f201fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -425,6 +425,7 @@ function Database(){
let txn = this.env.beginTxn();
let blockData = global.protos.Block.decode(txn.getBinary(this.blockDB, blockId));
blockData.valid = false;
blockData.unlocked = true;
txn.putBinary(this.blockDB, blockId, global.protos.Block.encode(blockData));
txn.commit();
};