mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 16:56:48 +00:00
fix: bound sfRawTransactions before eager batch txn id hashing
This commit is contained in:
@@ -570,6 +570,10 @@ STTx::buildBatchTxnIds()
|
||||
return;
|
||||
|
||||
auto const& raw = getFieldArray(sfRawTransactions);
|
||||
|
||||
if (raw.size() > maxBatchTxCount)
|
||||
return;
|
||||
|
||||
batchTxnIds_.reserve(raw.size());
|
||||
for (STObject const& rb : raw)
|
||||
batchTxnIds_.push_back(rb.getHash(HashPrefix::transactionID));
|
||||
|
||||
Reference in New Issue
Block a user