mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix some account_tx issues: (RIPD-1035)
* Sanely handled specified ledger in account_tx * Reject un-validated ledger in account_tx * Wait to publish a ledger until it's indexed * Add unit test for PendingSaves
This commit is contained in:
@@ -480,12 +480,12 @@ public:
|
||||
// Best effort for remaining exclusions
|
||||
for(auto v : pendingSaves)
|
||||
{
|
||||
if ((v >= minVal) && (v <= maxVal))
|
||||
if ((v.first >= minVal) && (v.first <= maxVal))
|
||||
{
|
||||
if (v > ((minVal + maxVal) / 2))
|
||||
maxVal = v - 1;
|
||||
if (v.first > ((minVal + maxVal) / 2))
|
||||
maxVal = v.first - 1;
|
||||
else
|
||||
minVal = v + 1;
|
||||
minVal = v.first + 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user