From 4d017ea5eb09a675875fc05a2655a76a53d52940 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Mon, 12 Aug 2013 13:02:33 -0700 Subject: [PATCH] Cleanups. --- modules/ripple_app/ledger/LedgerMaster.cpp | 2 ++ modules/ripple_app/ledger/ripple_InboundLedgers.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/ripple_app/ledger/LedgerMaster.cpp b/modules/ripple_app/ledger/LedgerMaster.cpp index 07ee872a7..7e8790c3c 100644 --- a/modules/ripple_app/ledger/LedgerMaster.cpp +++ b/modules/ripple_app/ledger/LedgerMaster.cpp @@ -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) diff --git a/modules/ripple_app/ledger/ripple_InboundLedgers.cpp b/modules/ripple_app/ledger/ripple_InboundLedgers.cpp index 43c87f329..d3e8bc3e6 100644 --- a/modules/ripple_app/ledger/ripple_InboundLedgers.cpp +++ b/modules/ripple_app/ledger/ripple_InboundLedgers.cpp @@ -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; }