Easier way to get the validated ledger index

This commit is contained in:
JoelKatz
2015-05-13 14:57:23 -07:00
committed by Vinnie Falco
parent d6ef66646f
commit 5adb68bba4

View File

@@ -859,7 +859,7 @@ bool NetworkOPsImp::haveLedger (std::uint32_t seq)
std::uint32_t NetworkOPsImp::getValidatedSeq ()
{
return m_ledgerMaster.getValidatedLedger ()->getLedgerSeq ();
return m_ledgerMaster.getValidLedgerIndex ();
}
bool NetworkOPsImp::isValidated (std::uint32_t seq, uint256 const& hash)