From 074463507ce5c0dfe260029918b0243ffdfb2e58 Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 27 Oct 2024 18:52:05 +0400 Subject: [PATCH] Fix p2p_v2_encrypted.py --- test/functional/test_framework/v2_p2p.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/test_framework/v2_p2p.py b/test/functional/test_framework/v2_p2p.py index 8f79623bd8..2bb1289eb5 100644 --- a/test/functional/test_framework/v2_p2p.py +++ b/test/functional/test_framework/v2_p2p.py @@ -228,7 +228,7 @@ def authenticate_handshake(self, response): def initialize_v2_transport(self, ecdh_secret): """Sets the peer object with various BIP324 derived keys and ciphers.""" peer = {} - salt = b'bitcoin_v2_shared_secret' + MAGIC_BYTES[self.net] + salt = b'qtum_v2_shared_secret' + MAGIC_BYTES[self.net] for name in ('initiator_L', 'initiator_P', 'responder_L', 'responder_P', 'garbage_terminators', 'session_id'): peer[name] = hkdf_sha256(salt=salt, ikm=ecdh_secret, info=name.encode('utf-8'), length=32) if self.initiating: