mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-06 02:38:11 +01:00
Decred: Add proxy config when using tor.
This commit is contained in:
@@ -11,11 +11,11 @@ def decode_compactsize(b: bytes, offset: int = 0) -> (int, int):
|
||||
return i, 1
|
||||
offset += 1
|
||||
if i == 0xfd:
|
||||
return int.from_bytes(b[offset: offset + 2]), 3
|
||||
return int.from_bytes(b[offset: offset + 2], 'little'), 3
|
||||
if i == 0xfe:
|
||||
return int.from_bytes(b[offset: offset + 4]), 5
|
||||
return int.from_bytes(b[offset: offset + 4], 'little'), 5
|
||||
# 0xff
|
||||
return int.from_bytes(b[offset: offset + 8]), 9
|
||||
return int.from_bytes(b[offset: offset + 8], 'little'), 9
|
||||
|
||||
|
||||
def encode_compactsize(i: int) -> bytes:
|
||||
|
||||
Reference in New Issue
Block a user