mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 05:55:51 +00:00
Query the LES, not the Ledger. This should fix the bug where
OfferCreate doesn't take all crossing offers.
This commit is contained in:
@@ -136,7 +136,7 @@ TER OfferCreateTransactor::takeOffers(
|
||||
&& saSubTakerPays.isPositive()
|
||||
&& saSubTakerGets.isPositive())
|
||||
{
|
||||
sleOfferDir = mEngine->entryCache(ltDIR_NODE, mEngine->getLedger()->getNextLedgerIndex(uTipIndex, uBookEnd));
|
||||
sleOfferDir = mEngine->entryCache(ltDIR_NODE, lesActive.getNextLedgerIndex(uTipIndex, uBookEnd));
|
||||
if (sleOfferDir)
|
||||
{
|
||||
uTipIndex = sleOfferDir->getIndex();
|
||||
|
||||
Reference in New Issue
Block a user