Decred: Add proxy config when using tor.

This commit is contained in:
tecnovert
2024-05-25 11:22:12 +02:00
parent 73b4b2a46b
commit 62aa1fa5d7
5 changed files with 31 additions and 9 deletions

View File

@@ -228,6 +228,13 @@ class DCRInterface(Secp256k1Interface):
return secondsLocked | SEQUENCE_LOCKTIME_TYPE_FLAG
raise ValueError('Unknown lock type')
@staticmethod
def decodeSequence(lock_value: int) -> int:
# Return the raw value
if lock_value & SEQUENCE_LOCKTIME_TYPE_FLAG:
return (lock_value & SEQUENCE_LOCKTIME_MASK) << SEQUENCE_LOCKTIME_GRANULARITY
return lock_value & SEQUENCE_LOCKTIME_MASK
@staticmethod
def watch_blocks_for_scripts() -> bool:
return True