From 42e706ed4b8b40f0a81ad7b0374cee2714054aea Mon Sep 17 00:00:00 2001 From: clemahieu Date: Mon, 29 Mar 2021 20:06:18 +0200 Subject: [PATCH] Comparing hashes instead of block pointers. (#3172) --- nano/core_test/node.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nano/core_test/node.cpp b/nano/core_test/node.cpp index 5079a23d94..4197569f33 100644 --- a/nano/core_test/node.cpp +++ b/nano/core_test/node.cpp @@ -1127,8 +1127,8 @@ TEST (node, fork_publish_inactive) auto blocks (election->blocks ()); ASSERT_NE (blocks.end (), blocks.find (send1->hash ())); ASSERT_NE (blocks.end (), blocks.find (send2->hash ())); - ASSERT_NE (election->winner (), send1); - ASSERT_NE (election->winner (), send2); + ASSERT_EQ (election->winner ()->hash (), send1->hash ()); + ASSERT_NE (election->winner ()->hash (), send2->hash ()); } TEST (node, fork_keep)