mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Don't check for what can never happen.
This commit is contained in:
@@ -101,20 +101,7 @@ uint32 NetworkOPs::getLedgerID (uint256 const& hash)
|
|||||||
|
|
||||||
Ledger::pointer NetworkOPs::getLedgerBySeq (const uint32 seq)
|
Ledger::pointer NetworkOPs::getLedgerBySeq (const uint32 seq)
|
||||||
{
|
{
|
||||||
Ledger::pointer ret;
|
return mLedgerMaster->getLedgerBySeq (seq);
|
||||||
|
|
||||||
ret = mLedgerMaster->getLedgerBySeq (seq);
|
|
||||||
|
|
||||||
if (ret)
|
|
||||||
return ret;
|
|
||||||
|
|
||||||
if (!haveLedger (seq))
|
|
||||||
return ret;
|
|
||||||
|
|
||||||
// We should have this ledger but we don't
|
|
||||||
WriteLog (lsWARNING, NetworkOPs) << "We should have ledger " << seq;
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32 NetworkOPs::getCurrentLedgerID ()
|
uint32 NetworkOPs::getCurrentLedgerID ()
|
||||||
|
|||||||
Reference in New Issue
Block a user