Browse Source
lnchannel: fix included_htlcs
hard-fail-on-bad-server-string
SomberNight
5 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
2 changed files with
3 additions and
3 deletions
-
electrum/lnchannel.py
-
electrum/lnutil.py
|
@ -746,7 +746,7 @@ class Channel(Logger): |
|
|
ctn = self.get_oldest_unrevoked_ctn(subject) |
|
|
ctn = self.get_oldest_unrevoked_ctn(subject) |
|
|
feerate = self.get_feerate(subject, ctn) |
|
|
feerate = self.get_feerate(subject, ctn) |
|
|
conf = self.config[subject] |
|
|
conf = self.config[subject] |
|
|
if (subject, direction) in [(REMOTE, RECEIVED), (LOCAL, SENT)]: |
|
|
if direction == RECEIVED: |
|
|
weight = HTLC_SUCCESS_WEIGHT |
|
|
weight = HTLC_SUCCESS_WEIGHT |
|
|
else: |
|
|
else: |
|
|
weight = HTLC_TIMEOUT_WEIGHT |
|
|
weight = HTLC_TIMEOUT_WEIGHT |
|
|
|
@ -531,8 +531,8 @@ class HTLCOwner(IntFlag): |
|
|
return HTLCOwner(-self) |
|
|
return HTLCOwner(-self) |
|
|
|
|
|
|
|
|
class Direction(IntFlag): |
|
|
class Direction(IntFlag): |
|
|
SENT = -1 |
|
|
SENT = -1 # in the context of HTLCs: "offered" HTLCs |
|
|
RECEIVED = 1 |
|
|
RECEIVED = 1 # in the context of HTLCs: "received" HTLCs |
|
|
|
|
|
|
|
|
SENT = Direction.SENT |
|
|
SENT = Direction.SENT |
|
|
RECEIVED = Direction.RECEIVED |
|
|
RECEIVED = Direction.RECEIVED |
|
|