Refactor secret conditions (#350)

* refactor spending conditions and add comments

* fix kind enum deserialization
This commit is contained in:
callebtc
2023-10-21 16:51:12 +02:00
committed by GitHub
parent 0490f20932
commit 48f732e9e7
8 changed files with 301 additions and 227 deletions

View File

@@ -40,7 +40,7 @@ class WalletHTLC(SupportsDb):
tags["pubkeys"] = hashlock_pubkey
return HTLCSecret(
kind=SecretKind.HTLC,
kind=SecretKind.HTLC.value,
data=preimage_hash,
tags=tags,
)