mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 04:05:52 +00:00
Updates to allow verify_ledger_json.js to calculate account_state hash
This commit is contained in:
@@ -9,6 +9,8 @@ if (process.argc < 1) {
|
||||
var json = fs.readFileSync(process.argv[2], 'utf-8');
|
||||
var ledger = Ledger.from_json(JSON.parse(json));
|
||||
|
||||
console.log("Calculated transaction hash: "+ledger.calc_tx_hash().to_hex())
|
||||
console.log("Transaction hash in header: "+ledger.ledger_json.transaction_hash);
|
||||
console.log("Calculated transaction hash: "+ledger.calc_tx_hash().to_hex());
|
||||
|
||||
console.log("Account state hash in header: "+ledger.ledger_json.account_hash);
|
||||
console.log("Calculated account state hash: "+ledger.calc_account_hash().to_hex());
|
||||
|
||||
Reference in New Issue
Block a user