Skip to content

Commit

Permalink
Fixing call to op () and adding extra test assert.
Browse files Browse the repository at this point in the history
  • Loading branch information
clemahieu committed Jan 24, 2024
1 parent 0e6e5fc commit 18eb63b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions nano/core_test/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()));

Expand Down
2 changes: 1 addition & 1 deletion nano/node/block_check_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ();
Expand Down

0 comments on commit 18eb63b

Please sign in to comment.