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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user