mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-30 17:01:34 +00:00
lnchannel: fix included_htlcs
This commit is contained in:
parent
bb35e330fb
commit
5b7ce98ab2
2 changed files with 3 additions and 3 deletions
|
@ -746,7 +746,7 @@ class Channel(Logger):
|
|||
ctn = self.get_oldest_unrevoked_ctn(subject)
|
||||
feerate = self.get_feerate(subject, ctn)
|
||||
conf = self.config[subject]
|
||||
if (subject, direction) in [(REMOTE, RECEIVED), (LOCAL, SENT)]:
|
||||
if direction == RECEIVED:
|
||||
weight = HTLC_SUCCESS_WEIGHT
|
||||
else:
|
||||
weight = HTLC_TIMEOUT_WEIGHT
|
||||
|
|
|
@ -531,8 +531,8 @@ class HTLCOwner(IntFlag):
|
|||
return HTLCOwner(-self)
|
||||
|
||||
class Direction(IntFlag):
|
||||
SENT = -1
|
||||
RECEIVED = 1
|
||||
SENT = -1 # in the context of HTLCs: "offered" HTLCs
|
||||
RECEIVED = 1 # in the context of HTLCs: "received" HTLCs
|
||||
|
||||
SENT = Direction.SENT
|
||||
RECEIVED = Direction.RECEIVED
|
||||
|
|
Loading…
Add table
Reference in a new issue