mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
Change >I to >Q for 64-bit big endian int
This commit is contained in:
@ -18,7 +18,7 @@ def message_id_generator(start_val):
|
||||
val += 1
|
||||
|
||||
# Convert val to big endian
|
||||
return struct.pack('>I', val)
|
||||
return struct.pack('>Q', val)
|
||||
|
||||
return generator
|
||||
|
||||
|
||||
Reference in New Issue
Block a user