Skip to content

Commit

Permalink
Count changed blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
MoneroOcean committed Jun 27, 2023
1 parent 7a723cd commit a5c7e4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion manage_scripts/altblocks_pay_manually.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ require("../init_mini.js").init(function() {
console.log("Put " + blockData.pay_value + " pay_value to block");
txn.putBinary(global.database.altblockDB, key, global.protos.AltBlock.encode(blockData));
console.log("Changed altblock");
changed = 1;
changed += 1;
}
});
}
cursor.close();
txn.commit();
if (!changed) console.log("Not found altblocks with specified hashes");
else console.log("Changed " + changed + "blocks");
process.exit(0);
});

0 comments on commit a5c7e4a

Please sign in to comment.