Skip to content

Commit 1f93c0e

Browse files
committed
Fix functional/feature_anchors.py file
1 parent 67dfcc1 commit 1f93c0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/functional/feature_anchors.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
from test_framework.p2p import P2PInterface, P2P_SERVICES
1010
from test_framework.socks5 import Socks5Configuration, Socks5Server
11-
from test_framework.messages import CAddress, hash256
11+
from test_framework.messages import CAddress, keccak256
1212
from test_framework.test_framework import BGLTestFramework
1313
from test_framework.util import check_node_connections, assert_equal, p2p_port
1414

@@ -132,7 +132,7 @@ def run_test(self):
132132
# to a host without our required services, even if its address is in the anchors.dat file
133133
new_data = bytearray(data)[:-32]
134134
new_data[services_index] = P2P_SERVICES
135-
new_data_hash = hash256(new_data)
135+
new_data_hash = keccak256(new_data)
136136
file_handler.write(new_data + new_data_hash)
137137

138138
self.log.info("Restarting node attempts to reconnect to anchors")

0 commit comments

Comments
 (0)