mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 06:25:51 +00:00
Update state during pathfinding
This commit is contained in:
committed by
Nik Bougalis
parent
feab6c39b3
commit
f6bea08535
@@ -1216,7 +1216,8 @@ Json::Value Ledger::getJson (int options)
|
|||||||
std::placeholders::_1));
|
std::placeholders::_1));
|
||||||
else
|
else
|
||||||
mAccountStateMap->visitLeaves(
|
mAccountStateMap->visitLeaves(
|
||||||
std::bind(stateItemTagAppender, state, std::placeholders::_1));
|
std::bind(stateItemTagAppender, std::ref(state),
|
||||||
|
std::placeholders::_1));
|
||||||
}
|
}
|
||||||
|
|
||||||
return ledger;
|
return ledger;
|
||||||
|
|||||||
@@ -51,6 +51,11 @@ TER nodeDeliverRev (
|
|||||||
auto& previousNode = pathState.nodes()[nodeIndex - 1];
|
auto& previousNode = pathState.nodes()[nodeIndex - 1];
|
||||||
auto& node = pathState.nodes()[nodeIndex];
|
auto& node = pathState.nodes()[nodeIndex];
|
||||||
|
|
||||||
|
if (bMultiQuality)
|
||||||
|
node.currentDirectory_ = 0; // Restart book searching.
|
||||||
|
else
|
||||||
|
node.bDirectRestart = true; // Restart at same quality.
|
||||||
|
|
||||||
STAmount& saPrvDlvReq = previousNode.saRevDeliver;
|
STAmount& saPrvDlvReq = previousNode.saRevDeliver;
|
||||||
|
|
||||||
// Accumulation of what the previous node must deliver.
|
// Accumulation of what the previous node must deliver.
|
||||||
|
|||||||
Reference in New Issue
Block a user