From 950c1848f3ccc03088eed83bf957234c7e3ab306 Mon Sep 17 00:00:00 2001 From: Dimitrios Siganos Date: Thu, 7 Mar 2024 12:35:07 +0000 Subject: [PATCH] Minor unused test code bugfix (nano::test::account_height) (#4466) No test is currently using this function but it is useful function --- nano/test_common/testutil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nano/test_common/testutil.cpp b/nano/test_common/testutil.cpp index 9d6d5bb7..fcdd79e6 100644 --- a/nano/test_common/testutil.cpp +++ b/nano/test_common/testutil.cpp @@ -289,7 +289,7 @@ uint64_t nano::test::account_height (nano::node const & node, nano::account cons { auto const tx = node.ledger.store.tx_begin_read (); nano::confirmation_height_info height_info; - if (!node.ledger.store.confirmation_height.get (tx, acc, height_info)) + if (node.ledger.store.confirmation_height.get (tx, acc, height_info)) { return 0; }