mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
TxQ full queue RPC info (RIPD-1404):
* RPC `ledger` command returns all queue entries in "queue_data" when requesting open ledger, and including boolean "queue: true". * Includes queue state. e.g.: fee_level, retries, last_result, tx. * Respects "expand" and "binary" parameters for the txs. * Remove some unused code.
This commit is contained in:
committed by
Scott Schurr
parent
846723d771
commit
7265729446
@@ -434,14 +434,13 @@ transactionPreProcessImpl (
|
||||
*ledger);
|
||||
// If the account has any txs in the TxQ, skip those sequence
|
||||
// numbers (accounting for possible gaps).
|
||||
if(queued)
|
||||
for(auto const& tx : *queued)
|
||||
{
|
||||
if (tx.first == seq)
|
||||
++seq;
|
||||
else if (tx.first > seq)
|
||||
break;
|
||||
}
|
||||
for(auto const& tx : queued)
|
||||
{
|
||||
if (tx.first == seq)
|
||||
++seq;
|
||||
else if (tx.first > seq)
|
||||
break;
|
||||
}
|
||||
tx_json[jss::Sequence] = seq;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user