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