mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-21 14:04:06 +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
|
||||
}
|
||||
|
||||
log.Debugf("Initialized channel reservation: zeroConf=%v, psbt=%v, "+
|
||||
"cannedShim=%v", reservation.IsZeroConf(),
|
||||
reservation.IsPsbt(), reservation.IsCannedShim())
|
||||
|
||||
if zeroConf {
|
||||
// Store an alias for zero-conf channels. Other option-scid
|
||||
// channels will do this at a later point.
|
||||
|
|
|
@ -798,6 +798,9 @@ func (l *LightningWallet) handleFundingReserveRequest(req *InitFundingReserveMsg
|
|||
return
|
||||
}
|
||||
|
||||
walletLog.Debugf("Registered funding intent for "+
|
||||
"PendingChanID: %x", req.PendingChanID)
|
||||
|
||||
localFundingAmt = fundingIntent.LocalFundingAmt()
|
||||
remoteFundingAmt = fundingIntent.RemoteFundingAmt()
|
||||
}
|
||||
|
@ -891,6 +894,10 @@ func (l *LightningWallet) handleFundingReserveRequest(req *InitFundingReserveMsg
|
|||
// completed, or canceled.
|
||||
req.resp <- reservation
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue