mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-20 10:38:42 +01:00
[rpc] reserve space in txns
This commit is contained in:
parent
6c5f19d9c4
commit
7d91442461
@ -951,6 +951,7 @@ static RPCHelpMan testmempoolaccept()
|
|||||||
CFeeRate(AmountFromValue(request.params[1]));
|
CFeeRate(AmountFromValue(request.params[1]));
|
||||||
|
|
||||||
std::vector<CTransactionRef> txns;
|
std::vector<CTransactionRef> txns;
|
||||||
|
txns.reserve(raw_transactions.size());
|
||||||
for (const auto& rawtx : raw_transactions.getValues()) {
|
for (const auto& rawtx : raw_transactions.getValues()) {
|
||||||
CMutableTransaction mtx;
|
CMutableTransaction mtx;
|
||||||
if (!DecodeHexTx(mtx, rawtx.get_str())) {
|
if (!DecodeHexTx(mtx, rawtx.get_str())) {
|
||||||
|
Loading…
Reference in New Issue
Block a user