contractcourt: consider delivery addresses when evaluating toSelfAmount
This commit fixes #8535 by changing how we assess toSelfAmount inside the chainWatcher. In certain cases users may wish to close out channel funds to external delivery addresses set either during open or close. Prior to this change we only consider addresses that our wallet is aware of. This change now identifies outputs as to_self outputs if the delivery script matches OR if our wallet is aware of the address. In certain edge cases it can be possible for there to be more than one output that matches these criteria and in that case we will return the sum of those values.
This commit is contained in:
1 parent
56048133f2
commit
30e10322b2
3 files changed
+61
-19
No files matched your search
@@ -35,7 +35,7 @@ require (
|
||||
github.com/lightningnetwork/lightning-onion v1.2.1-0.20230823005744-06182b1d7d2f
|
||||
github.com/lightningnetwork/lnd/cert v1.2.2
|
||||
github.com/lightningnetwork/lnd/clock v1.1.1
|
||||
github.com/lightningnetwork/lnd/fn v1.0.5
|
||||
github.com/lightningnetwork/lnd/fn v1.0.9
|
||||
github.com/lightningnetwork/lnd/healthcheck v1.2.4
|
||||
github.com/lightningnetwork/lnd/kvdb v1.4.8
|
||||
github.com/lightningnetwork/lnd/queue v1.1.1
|
||||
|
||||
Reference in new issue
Block a user