mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-25 13:12:11 +02:00
add SegWit to support channel types
This commit is contained in:
@@ -51,10 +51,13 @@ var (
|
||||
type FundingType uint16
|
||||
|
||||
const (
|
||||
//Use SIGHASH_NOINPUT, assumes CSV
|
||||
SIGHASH FundingType = iota
|
||||
// Use SegWit, assumes CSV+CLTV
|
||||
SEGWIT FundingType = iota
|
||||
|
||||
//Use CSV without reserve
|
||||
// Use SIGHASH_NOINPUT, assumes CSV+CLTV
|
||||
SIGHASH
|
||||
|
||||
// Use CSV without reserve
|
||||
CSV
|
||||
|
||||
// Use CSV with reserve
|
||||
@@ -419,6 +422,7 @@ func (l *LightningWallet) handleFundingReserveRequest(req *initFundingReserveMsg
|
||||
// handleFundingReserveCancel...
|
||||
func (l *LightningWallet) handleFundingCancelRequest(req *fundingReserveCancelMsg) {
|
||||
// TODO(roasbeef): holding lock too long
|
||||
// RLOCK?
|
||||
l.limboMtx.Lock()
|
||||
defer l.limboMtx.Unlock()
|
||||
|
||||
|
Reference in New Issue
Block a user