Merge pull request #7925 from Crypt-iQ/funding_maturity

funding: wait for coinbase maturity before sending channel_ready
This commit is contained in:
Oliver Gugger authored and GitHub committed 2023-10-05 15:26:30 +00:00
commit 31ba616b1c
3 files changed
+289

No files matched your search

+16
View File
@@ -10,6 +10,22 @@ import (
"github.com/lightningnetwork/lnd/keychain"
)
// NewShimIntent creates a new ShimIntent. This is only used for testing.
func NewShimIntent(localAmt, remoteAmt btcutil.Amount,
localKey *keychain.KeyDescriptor, remoteKey *btcec.PublicKey,
chanPoint *wire.OutPoint, thawHeight uint32, musig2 bool) *ShimIntent {
return &ShimIntent{
localFundingAmt: localAmt,
remoteFundingAmt: remoteAmt,
localKey: localKey,
remoteKey: remoteKey,
chanPoint: chanPoint,
thawHeight: thawHeight,
musig2: musig2,
}
}
// ShimIntent is an intent created by the CannedAssembler which represents a
// funding output to be created that was constructed outside the wallet. This
// might be used when a hardware wallet, or a channel factory is the entity