From 841e5e755745649285a66bfe034d15421f742ca2 Mon Sep 17 00:00:00 2001 From: sowle Date: Mon, 16 Oct 2023 11:41:24 +0200 Subject: [PATCH] coretests: chaingen: minor improvement --- tests/core_tests/chaingen.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/core_tests/chaingen.h b/tests/core_tests/chaingen.h index 663593c7..69f1ab56 100644 --- a/tests/core_tests/chaingen.h +++ b/tests/core_tests/chaingen.h @@ -1112,9 +1112,10 @@ void append_vector_by_another_vector(U& dst, const V& src) PRINT_EVENT_N_TEXT(VEC_EVENTS, "MAKE_NEXT_POS_BLOCK_TX1(" << #BLK_NAME << ")"); \ currency::block BLK_NAME = AUTO_VAL_INIT(BLK_NAME); \ { \ - std::listtx_list; \ + std::list tx_list; \ tx_list.push_back(TX_1); \ - generator.construct_block(VEC_EVENTS, BLK_NAME, PREV_BLOCK, MINER_ACC, tx_list, MINERS_ACC_LIST); \ + if (!generator.construct_block(VEC_EVENTS, BLK_NAME, PREV_BLOCK, MINER_ACC, tx_list, MINERS_ACC_LIST)) \ + return false; \ } \ VEC_EVENTS.push_back(BLK_NAME)