Skip to content

Commit

Permalink
set locktime from script
Browse files Browse the repository at this point in the history
  • Loading branch information
eukreign committed Mar 23, 2022
1 parent 4468433 commit 2d9aa3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lbry/wallet/script.py
Expand Up @@ -408,6 +408,7 @@ def redeem_time_lock_script_hash(cls, signature, pubkey, height=None, pubkey_has
})
elif script_source:
script = cls(source=script_source, template=cls.TIME_LOCK_SCRIPT)
script.parse(script.template)
else:
raise ValueError("script_source or both height and pubkey_hash are required.")
return cls(template=cls.REDEEM_SCRIPT_HASH_TIME_LOCK, values={
Expand Down

0 comments on commit 2d9aa3e

Please sign in to comment.