funding+lnwallet: add more debug logs

This commit is contained in:
yyforyongyu 2022-09-01 13:53:06 +08:00
parent 59578d9f1a
commit f9ede5af73
No known key found for this signature in database
GPG key ID: 9BCD95C4FF296868
2 changed files with 11 additions and 0 deletions

View file

@ -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.

View file

@ -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