mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Prevent a race condition that can cause us to miss an "I have a transaction
set" message if it arrives as we're in the process of generating a new last-closed ledger.
This commit is contained in:
@@ -790,6 +790,14 @@ void LedgerConsensus::startAcquiring(const TransactionAcquire::pointer& acquire)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<Peer::pointer> peerList = theApp->getConnectionPool().getPeerVector();
|
||||
BOOST_FOREACH(Peer::ref peer, peerList)
|
||||
{
|
||||
if (peer->hasTxSet(acquire->getHash())
|
||||
acquire->peerHash(peer);
|
||||
}
|
||||
|
||||
acquire->resetTimer();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user