diff --git a/nano/core_test/node.cpp b/nano/core_test/node.cpp index ce79ecf735..e6469084c7 100644 --- a/nano/core_test/node.cpp +++ b/nano/core_test/node.cpp @@ -1620,6 +1620,7 @@ TEST (node, unconfirmed_send) // firstly, send two units from node1 to node2 and expect that both nodes see the block as confirmed // (node1 will start an election for it, vote on it and node2 gets synced up) auto send1 = wallet1->send_action (nano::dev::genesis->account (), key2.pub, 2 * nano::Mxrb_ratio); + ASSERT_NE (send1, nullptr); ASSERT_TIMELY (5s, node1.block_confirmed (send1->hash ())); ASSERT_TIMELY (5s, node2.block_confirmed (send1->hash ())); diff --git a/nano/node/block_check_context.cpp b/nano/node/block_check_context.cpp index 1047034b20..b1b77f4446 100644 --- a/nano/node/block_check_context.cpp +++ b/nano/node/block_check_context.cpp @@ -343,7 +343,7 @@ nano::process_result nano::block_check_context::check () { return result; } - switch (block_op ()) + switch (op ()) { case block_op::receive: return check_receive_rules ();