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:
parent
0f40dd7554
commit
0963e43860
@ -384,7 +384,7 @@ def complete_handshake(peer, initiating, decoy_content_lengths=[]):
|
|||||||
if received_garbage[-16:] == peer.recv_garbage_terminator:
|
if received_garbage[-16:] == peer.recv_garbage_terminator:
|
||||||
# Receive, decode, and ignore version packet.
|
# Receive, decode, and ignore version packet.
|
||||||
# This includes skipping decoys and authenticating the received garbage.
|
# 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
|
return
|
||||||
else:
|
else:
|
||||||
received_garbage += recv(peer, 1)
|
received_garbage += recv(peer, 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user