Cleanups.

This commit is contained in:
JoelKatz
2013-08-12 13:02:33 -07:00
parent 1ddf8f3969
commit 4d017ea5eb
2 changed files with 3 additions and 1 deletions

View File

@@ -480,6 +480,8 @@ void LedgerMaster::checkAccept (uint256 const& hash)
if (ledger)
checkAccept (hash, ledger->getLedgerSeq ());
else
getApp().getInboundLedgers().findCreate(hash, 0);
}
void LedgerMaster::checkAccept (uint256 const& hash, uint32 seq)

View File

@@ -11,7 +11,7 @@ InboundLedger::pointer InboundLedgers::findCreate (uint256 const& hash, uint32 s
InboundLedger::pointer& ptr = mLedgers[hash];
if (ptr)
{
{ // FIXME: Should set the sequence if it's not set
ptr->touch ();
return ptr;
}