multi: improve loggings
This commit is contained in:
1 parent
45b243c91c
commit
1d53e7d081
6 files changed
+23
-17
No files matched your search
@@ -1610,8 +1610,8 @@ func (c *ChannelArbitrator) advanceState(
|
||||
for {
|
||||
priorState = c.state
|
||||
log.Debugf("ChannelArbitrator(%v): attempting state step with "+
|
||||
"trigger=%v from state=%v", c.cfg.ChanPoint, trigger,
|
||||
priorState)
|
||||
"trigger=%v from state=%v at height=%v",
|
||||
c.cfg.ChanPoint, trigger, priorState, triggerHeight)
|
||||
|
||||
nextState, closeTx, err := c.stateStep(
|
||||
triggerHeight, trigger, confCommitSet,
|
||||
@@ -2822,14 +2822,12 @@ func (c *ChannelArbitrator) channelAttendant(bestHeight int32,
|
||||
// We have broadcasted our commitment, and it is now confirmed
|
||||
// on-chain.
|
||||
case closeInfo := <-c.cfg.ChainEvents.LocalUnilateralClosure:
|
||||
log.Infof("ChannelArbitrator(%v): local on-chain "+
|
||||
"channel close", c.cfg.ChanPoint)
|
||||
|
||||
if c.state != StateCommitmentBroadcasted {
|
||||
log.Errorf("ChannelArbitrator(%v): unexpected "+
|
||||
"local on-chain channel close",
|
||||
c.cfg.ChanPoint)
|
||||
}
|
||||
|
||||
closeTx := closeInfo.CloseTx
|
||||
|
||||
resolutions, err := closeInfo.ContractResolutions.
|
||||
@@ -2857,6 +2855,10 @@ func (c *ChannelArbitrator) channelAttendant(bestHeight int32,
|
||||
return
|
||||
}
|
||||
|
||||
log.Infof("ChannelArbitrator(%v): local force close "+
|
||||
"tx=%v confirmed", c.cfg.ChanPoint,
|
||||
closeTx.TxHash())
|
||||
|
||||
contractRes := &ContractResolutions{
|
||||
CommitHash: closeTx.TxHash(),
|
||||
CommitResolution: resolutions.CommitResolution,
|
||||
|
||||
@@ -57,10 +57,10 @@ func (h *htlcLeaseResolver) makeSweepInput(op *wire.OutPoint,
|
||||
signDesc *input.SignDescriptor, csvDelay, broadcastHeight uint32,
|
||||
payHash [32]byte, resBlob fn.Option[tlv.Blob]) *input.BaseInput {
|
||||
|
||||
if h.hasCLTV() {
|
||||
log.Infof("%T(%x): CSV and CLTV locks expired, offering "+
|
||||
"second-layer output to sweeper: %v", h, payHash, op)
|
||||
log.Infof("%T(%x): offering second-layer output to sweeper: %v", h,
|
||||
payHash, op)
|
||||
|
||||
if h.hasCLTV() {
|
||||
return input.NewCsvInputWithCltv(
|
||||
op, cltvWtype, signDesc,
|
||||
broadcastHeight, csvDelay,
|
||||
|
||||
@@ -794,7 +794,7 @@ func (u *UtxoNursery) graduateClass(classHeight uint32) error {
|
||||
return err
|
||||
}
|
||||
|
||||
utxnLog.Infof("Attempting to graduate height=%v: num_kids=%v, "+
|
||||
utxnLog.Debugf("Attempting to graduate height=%v: num_kids=%v, "+
|
||||
"num_babies=%v", classHeight, len(kgtnOutputs), len(cribOutputs))
|
||||
|
||||
// Offer the outputs to the sweeper and set up notifications that will
|
||||
|
||||
Reference in new issue
Block a user