mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-10-19 16:18:40 +02:00
don't use temp txs variable
This commit is contained in:
@@ -106,16 +106,12 @@ namespace monero {
|
||||
if (aTx->block != boost::none || tx->block != boost::none) {
|
||||
if (aTx->block == boost::none) {
|
||||
aTx->block = shared_ptr<MoneroBlock>(new MoneroBlock());
|
||||
vector<shared_ptr<MoneroTx>> 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<MoneroBlock>(new MoneroBlock());
|
||||
vector<shared_ptr<MoneroTx>> 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);
|
||||
|
||||
Reference in New Issue
Block a user