mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Hash is not valid if transaction is added to ledger.
This commit is contained in:
@@ -256,6 +256,7 @@ bool Ledger::addTransaction(const uint256& txID, const Serializer& txn)
|
||||
cLog(lsWARNING) << "Attempt to add transaction to ledger that already had it";
|
||||
return false;
|
||||
}
|
||||
mValidHash = false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -270,6 +271,7 @@ bool Ledger::addTransaction(const uint256& txID, const Serializer& txn, const Se
|
||||
cLog(lsFATAL) << "Attempt to add transaction+MD to ledger that already had it";
|
||||
return false;
|
||||
}
|
||||
mValidHash = false;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user