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:
JoelKatz
2012-10-04 02:19:47 -07:00
parent f0a9ee4505
commit 414a44b6b5
3 changed files with 35 additions and 3 deletions

View File

@@ -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();
}