File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
test/functional/test_framework Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -244,21 +244,21 @@ class CInv:
244
244
MSG_TX | MSG_WITNESS_FLAG : "WitnessTx" ,
245
245
MSG_BLOCK | MSG_WITNESS_FLAG : "WitnessBlock" ,
246
246
MSG_FILTERED_BLOCK : "filtered Block" ,
247
- 4 : "CompactBlock" ,
248
- 5 : "WTX" ,
247
+ MSG_CMPCT_BLOCK : "CompactBlock" ,
248
+ MSG_WTX : "WTX" ,
249
249
}
250
250
251
251
def __init__ (self , t = 0 , h = 0 ):
252
252
self .type = t
253
253
self .hash = h
254
254
255
255
def deserialize (self , f ):
256
- self .type = struct .unpack ("<i " , f .read (4 ))[0 ]
256
+ self .type = struct .unpack ("<I " , f .read (4 ))[0 ]
257
257
self .hash = deser_uint256 (f )
258
258
259
259
def serialize (self ):
260
260
r = b""
261
- r += struct .pack ("<i " , self .type )
261
+ r += struct .pack ("<I " , self .type )
262
262
r += ser_uint256 (self .hash )
263
263
return r
264
264
You can’t perform that action at this time.
0 commit comments