Make sure checkAccept is called, unless we know we don't need to, when findCreate completed immediately

This commit is contained in:
JoelKatz
2013-08-18 19:29:55 -07:00
parent 48c4eb3ad3
commit 6e0d6bdba4
5 changed files with 13 additions and 11 deletions

View File

@@ -843,7 +843,7 @@ bool NetworkOPs::checkLastClosedLedger (const std::vector<Peer::pointer>& peerLi
WriteLog (lsINFO, NetworkOPs) << "Acquiring consensus ledger " << closedLedger;
if (!mAcquiringLedger || (mAcquiringLedger->getHash () != closedLedger))
mAcquiringLedger = getApp().getInboundLedgers ().findCreate (closedLedger, 0);
mAcquiringLedger = getApp().getInboundLedgers ().findCreate (closedLedger, 0, true);
if (!mAcquiringLedger || mAcquiringLedger->isFailed ())
{
@@ -2384,7 +2384,7 @@ void NetworkOPs::missingNodeInLedger (uint32 seq)
uint256 hash = getApp().getLedgerMaster ().getHashBySeq (seq);
if (hash.isNonZero ())
getApp().getInboundLedgers ().findCreate (hash, seq);
getApp().getInboundLedgers ().findCreate (hash, seq, false);
}
void NetworkOPs::doClusterReport ()