From 9948e5c0346be72324fa50ea4c06a3a7d948e20e Mon Sep 17 00:00:00 2001 From: woodser Date: Sat, 22 Jun 2019 11:53:19 -0400 Subject: [PATCH] don't use temp txs variable --- src/wallet/MoneroWallet.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/wallet/MoneroWallet.cpp b/src/wallet/MoneroWallet.cpp index da6ab95..2182a66 100644 --- a/src/wallet/MoneroWallet.cpp +++ b/src/wallet/MoneroWallet.cpp @@ -106,16 +106,12 @@ namespace monero { if (aTx->block != boost::none || tx->block != boost::none) { if (aTx->block == boost::none) { aTx->block = shared_ptr(new MoneroBlock()); - vector> txs; - txs.push_back(tx); - (*aTx->block)->txs = txs; + (*aTx->block)->txs.push_back(tx); (*aTx->block)->height = *tx->getHeight(); } if (tx->block == boost::none) { tx->block = shared_ptr(new MoneroBlock()); - vector> txs; - txs.push_back(tx); - (*tx->block)->txs = txs; + (*tx->block)->txs.push_back(tx); (*tx->block)->height = *aTx->getHeight(); } (*aTx->block)->merge(*aTx->block, *tx->block);