File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
test/functional/test_framework Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -808,12 +808,13 @@ def __init__(self):
808
808
self .getdata_requests = []
809
809
810
810
def on_getdata (self , message ):
811
- """Check for the tx/block in our stores and if found, reply with an inv message ."""
811
+ """Check for the tx/block in our stores and if found, reply with MSG_TX or MSG_BLOCK ."""
812
812
for inv in message .inv :
813
813
self .getdata_requests .append (inv .hash )
814
- if (inv .type & MSG_TYPE_MASK ) == MSG_TX and inv .hash in self .tx_store .keys ():
814
+ invtype = inv .type & MSG_TYPE_MASK
815
+ if (invtype == MSG_TX or invtype == MSG_WTX ) and inv .hash in self .tx_store .keys ():
815
816
self .send_message (msg_tx (self .tx_store [inv .hash ]))
816
- elif ( inv . type & MSG_TYPE_MASK ) == MSG_BLOCK and inv .hash in self .block_store .keys ():
817
+ elif invtype == MSG_BLOCK and inv .hash in self .block_store .keys ():
817
818
self .send_message (msg_block (self .block_store [inv .hash ]))
818
819
else :
819
820
logger .debug ('getdata message type {} received.' .format (hex (inv .type )))
You can’t perform that action at this time.
0 commit comments