Skip to content

Commit

Permalink
Fix functional/feature_anchors.py file
Browse files Browse the repository at this point in the history
  • Loading branch information
janus committed Sep 14, 2024
1 parent 67dfcc1 commit 1f93c0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/functional/feature_anchors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 1f93c0e

Please sign in to comment.