From 6d80e9c2aa150d94e9bfe6065143988a1dd0f191 Mon Sep 17 00:00:00 2001 From: Sergey Kroshnin Date: Fri, 19 Feb 2021 18:19:28 +0300 Subject: [PATCH] Fix test rpc.confirmation_active (#3102) --- nano/node/testing.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nano/node/testing.cpp b/nano/node/testing.cpp index e584fbd02..62158d3c0 100644 --- a/nano/node/testing.cpp +++ b/nano/node/testing.cpp @@ -208,9 +208,11 @@ void nano::blocks_confirm (nano::node & node_a, std::vectorhash ())); // A sideband is required to start an election - debug_assert (block->has_sideband ()); - node_a.block_confirm (block); + debug_assert (disk_block != nullptr); + debug_assert (disk_block->has_sideband ()); + node_a.block_confirm (disk_block); } }