1
0
mirror of https://github.com/bitcoin/bips.git synced 2024-11-19 01:40:05 +01:00

BIP 324: fix python aad in complete_handshake

This commit is contained in:
Eugene Siegel 2024-07-26 11:46:37 -04:00
parent 0f40dd7554
commit 0963e43860
No known key found for this signature in database
GPG Key ID: 118759E83439A9B1

View File

@ -384,7 +384,7 @@ def complete_handshake(peer, initiating, decoy_content_lengths=[]):
if received_garbage[-16:] == peer.recv_garbage_terminator:
# Receive, decode, and ignore version packet.
# This includes skipping decoys and authenticating the received garbage.
v2_receive_packet(peer, aad=received_garbage)
v2_receive_packet(peer, aad=received_garbage[:-16])
return
else:
received_garbage += recv(peer, 1)