funding+lnwallet: support funding new script enforced leased channels
This commit is contained in:
1 parent
f38c6d6662
commit
564ec0fd9b
4 files changed
+128
-14
No files matched your search
+1
-1
@@ -818,7 +818,7 @@ func (l *LightningWallet) handleFundingReserveRequest(req *InitFundingReserveMsg
|
||||
// funding tx ready, so this will always pass. We'll do another check
|
||||
// when the PSBT has been verified.
|
||||
isPublic := req.Flags&lnwire.FFAnnounceChannel != 0
|
||||
hasAnchors := req.CommitType == CommitmentTypeAnchorsZeroFeeHtlcTx
|
||||
hasAnchors := req.CommitType.HasAnchors()
|
||||
err = l.enforceNewReservedValue(fundingIntent, isPublic, hasAnchors)
|
||||
if err != nil {
|
||||
fundingIntent.Cancel()
|
||||
|
||||
Reference in new issue
Block a user