mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-05 08:47:53 +00:00
Acquire logic fixes:
In InboundLedgers::acquire, properly return a ledger if we are able to create one immediately. In LedgerMaster::walkHashBySeq, don't walk the whole ledger if we already know we have it.
This commit is contained in:
@@ -352,7 +352,7 @@ public:
|
||||
{
|
||||
// No, Try to get another ledger that might have the hash we need
|
||||
// Compute the index and hash of a ledger that will have the hash we need
|
||||
LedgerIndex refIndex = (ledgerIndex + 255) & (~255);
|
||||
LedgerIndex refIndex = getCandidateLedger (ledgerIndex);
|
||||
LedgerHash refHash = getLedgerHash (referenceLedger, refIndex);
|
||||
|
||||
bool const nonzero (refHash.isNonZero ());
|
||||
|
||||
Reference in New Issue
Block a user