1
0

lnpeer: more detailed logging in maybe_fulfill_htlc

This commit is contained in:
SomberNight
2021-03-02 18:53:08 +01:00
parent 9310e9023e
commit 44059ec116
2 changed files with 18 additions and 8 deletions

View File

@@ -1300,7 +1300,7 @@ def format_short_channel_id(short_channel_id: Optional[bytes]):
@attr.s(frozen=True)
class UpdateAddHtlc:
amount_msat = attr.ib(type=int, kw_only=True)
payment_hash = attr.ib(type=bytes, kw_only=True, converter=hex_to_bytes)
payment_hash = attr.ib(type=bytes, kw_only=True, converter=hex_to_bytes, repr=lambda val: val.hex())
cltv_expiry = attr.ib(type=int, kw_only=True)
timestamp = attr.ib(type=int, kw_only=True)
htlc_id = attr.ib(type=int, kw_only=True, default=None)