mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix declaration/implementation mismatches
This commit is contained in:
committed by
Tom Ritchford
parent
f3725bdd2e
commit
f1df9a02fa
@@ -62,7 +62,7 @@ bool LedgerHistory::addLedger (Ledger::pointer ledger, bool validated)
|
||||
return alreadyHad;
|
||||
}
|
||||
|
||||
uint256 LedgerHistory::getLedgerHash (std::uint32_t index)
|
||||
LedgerHash LedgerHistory::getLedgerHash (LedgerIndex index)
|
||||
{
|
||||
LedgersByHash::ScopedLockType sl (m_ledgers_by_hash.peekMutex ());
|
||||
std::map<std::uint32_t, uint256>::iterator it (mLedgersByIndex.find (index));
|
||||
@@ -73,7 +73,7 @@ uint256 LedgerHistory::getLedgerHash (std::uint32_t index)
|
||||
return uint256 ();
|
||||
}
|
||||
|
||||
Ledger::pointer LedgerHistory::getLedgerBySeq (std::uint32_t index)
|
||||
Ledger::pointer LedgerHistory::getLedgerBySeq (LedgerIndex index)
|
||||
{
|
||||
{
|
||||
LedgersByHash::ScopedLockType sl (m_ledgers_by_hash.peekMutex ());
|
||||
@@ -105,7 +105,7 @@ Ledger::pointer LedgerHistory::getLedgerBySeq (std::uint32_t index)
|
||||
}
|
||||
}
|
||||
|
||||
Ledger::pointer LedgerHistory::getLedgerByHash (uint256 const& hash)
|
||||
Ledger::pointer LedgerHistory::getLedgerByHash (LedgerHash const& hash)
|
||||
{
|
||||
Ledger::pointer ret = m_ledgers_by_hash.fetch (hash);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user