[rpc] reserve space in txns

This commit is contained in:
glozow 2021-05-26 18:12:06 +01:00
parent 6c5f19d9c4
commit 7d91442461

View File

@ -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())) {