mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 20:03:34 -03:00
[rpc] reserve space in txns
This commit is contained in:
parent
6c5f19d9c4
commit
7d91442461
1 changed files with 1 additions and 0 deletions
|
@ -951,6 +951,7 @@ static RPCHelpMan testmempoolaccept()
|
|||
CFeeRate(AmountFromValue(request.params[1]));
|
||||
|
||||
std::vector<CTransactionRef> txns;
|
||||
txns.reserve(raw_transactions.size());
|
||||
for (const auto& rawtx : raw_transactions.getValues()) {
|
||||
CMutableTransaction mtx;
|
||||
if (!DecodeHexTx(mtx, rawtx.get_str())) {
|
||||
|
|
Loading…
Reference in a new issue