mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 22:25:24 +01:00
funding+lnwallet: add more debug logs
This commit is contained in:
parent
59578d9f1a
commit
f9ede5af73
2 changed files with 11 additions and 0 deletions
|
@ -1505,6 +1505,10 @@ func (f *Manager) handleFundingOpen(peer lnpeer.Peer,
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.Debugf("Initialized channel reservation: zeroConf=%v, psbt=%v, "+
|
||||||
|
"cannedShim=%v", reservation.IsZeroConf(),
|
||||||
|
reservation.IsPsbt(), reservation.IsCannedShim())
|
||||||
|
|
||||||
if zeroConf {
|
if zeroConf {
|
||||||
// Store an alias for zero-conf channels. Other option-scid
|
// Store an alias for zero-conf channels. Other option-scid
|
||||||
// channels will do this at a later point.
|
// channels will do this at a later point.
|
||||||
|
|
|
@ -798,6 +798,9 @@ func (l *LightningWallet) handleFundingReserveRequest(req *InitFundingReserveMsg
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
walletLog.Debugf("Registered funding intent for "+
|
||||||
|
"PendingChanID: %x", req.PendingChanID)
|
||||||
|
|
||||||
localFundingAmt = fundingIntent.LocalFundingAmt()
|
localFundingAmt = fundingIntent.LocalFundingAmt()
|
||||||
remoteFundingAmt = fundingIntent.RemoteFundingAmt()
|
remoteFundingAmt = fundingIntent.RemoteFundingAmt()
|
||||||
}
|
}
|
||||||
|
@ -891,6 +894,10 @@ func (l *LightningWallet) handleFundingReserveRequest(req *InitFundingReserveMsg
|
||||||
// completed, or canceled.
|
// completed, or canceled.
|
||||||
req.resp <- reservation
|
req.resp <- reservation
|
||||||
req.err <- nil
|
req.err <- nil
|
||||||
|
|
||||||
|
walletLog.Debugf("Successfully handled funding reservation with "+
|
||||||
|
"pendingChanID: %x, reservationID: %v",
|
||||||
|
reservation.pendingChanID, reservation.reservationID)
|
||||||
}
|
}
|
||||||
|
|
||||||
// enforceReservedValue enforces that the wallet, upon a new channel being
|
// enforceReservedValue enforces that the wallet, upon a new channel being
|
||||||
|
|
Loading…
Add table
Reference in a new issue