From 1f93c0ed3a1d1129be57d19fb77e79cfdf590a24 Mon Sep 17 00:00:00 2001 From: ijanus Date: Sat, 14 Sep 2024 12:59:07 +0100 Subject: [PATCH] Fix functional/feature_anchors.py file --- test/functional/feature_anchors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/feature_anchors.py b/test/functional/feature_anchors.py index 87358e6932..7fd32b5946 100755 --- a/test/functional/feature_anchors.py +++ b/test/functional/feature_anchors.py @@ -8,7 +8,7 @@ from test_framework.p2p import P2PInterface, P2P_SERVICES from test_framework.socks5 import Socks5Configuration, Socks5Server -from test_framework.messages import CAddress, hash256 +from test_framework.messages import CAddress, keccak256 from test_framework.test_framework import BGLTestFramework from test_framework.util import check_node_connections, assert_equal, p2p_port @@ -132,7 +132,7 @@ def run_test(self): # to a host without our required services, even if its address is in the anchors.dat file new_data = bytearray(data)[:-32] new_data[services_index] = P2P_SERVICES - new_data_hash = hash256(new_data) + new_data_hash = keccak256(new_data) file_handler.write(new_data + new_data_hash) self.log.info("Restarting node attempts to reconnect to anchors")