fix offer dir iteration bug (#141)

This commit is contained in:
CJ Cobb
2022-04-20 10:58:01 -04:00
committed by GitHub
parent da5e21b648
commit 09c245786d

View File

@@ -182,10 +182,10 @@ BackendInterface::fetchBookOffers(
<< offerDir.has_value() << " breaking"; << offerDir.has_value() << " breaking";
break; break;
} }
uTipIndex = offerDir->key;
while (keys.size() < limit) while (keys.size() < limit)
{ {
++numPages; ++numPages;
uTipIndex = offerDir->key;
ripple::STLedgerEntry sle{ ripple::STLedgerEntry sle{
ripple::SerialIter{ ripple::SerialIter{
offerDir->blob.data(), offerDir->blob.size()}, offerDir->blob.data(), offerDir->blob.size()},