aboutsummaryrefslogtreecommitdiff
path: root/src/bench/wallet_loading.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/bench/wallet_loading.cpp')
-rw-r--r--src/bench/wallet_loading.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bench/wallet_loading.cpp b/src/bench/wallet_loading.cpp
index 5453238728..b17c7fe05a 100644
--- a/src/bench/wallet_loading.cpp
+++ b/src/bench/wallet_loading.cpp
@@ -20,8 +20,8 @@ namespace wallet{
static void AddTx(CWallet& wallet)
{
CMutableTransaction mtx;
- mtx.vout.push_back({COIN, GetScriptForDestination(*Assert(wallet.GetNewDestination(OutputType::BECH32, "")))});
- mtx.vin.push_back(CTxIn());
+ mtx.vout.emplace_back(COIN, GetScriptForDestination(*Assert(wallet.GetNewDestination(OutputType::BECH32, ""))));
+ mtx.vin.emplace_back();
wallet.AddToWallet(MakeTransactionRef(mtx), TxStateInactive{});
}