mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix a bug that can cause us to think we have a full ledger when we don't.
This commit is contained in:
@@ -844,7 +844,7 @@ std::vector<InboundLedger::neededHash_t> InboundLedger::getNeededHashes ()
|
|||||||
if (!mHaveTransactions)
|
if (!mHaveTransactions)
|
||||||
{
|
{
|
||||||
TransactionStateSF filter (mLedger->getLedgerSeq ());
|
TransactionStateSF filter (mLedger->getLedgerSeq ());
|
||||||
std::vector<uint256> v = mLedger->getNeededAccountStateHashes (4, &filter);
|
std::vector<uint256> v = mLedger->getNeededTransactionHashes (4, &filter);
|
||||||
BOOST_FOREACH (uint256 const & h, v)
|
BOOST_FOREACH (uint256 const & h, v)
|
||||||
{
|
{
|
||||||
ret.push_back (std::make_pair (protocol::TMGetObjectByHash::otTRANSACTION_NODE, h));
|
ret.push_back (std::make_pair (protocol::TMGetObjectByHash::otTRANSACTION_NODE, h));
|
||||||
|
|||||||
Reference in New Issue
Block a user