htlcswitch+lnwallet: add trace logs for tickers

This commit is contained in:
yyforyongyu committed 2022-03-24 10:01:41 +08:00
1 parent bd5e29ec83
commit 13ade7e9ce
2 files changed
+11 -1

No files matched your search

+4 -1
View File
@@ -3530,7 +3530,10 @@ func (lc *LightningChannel) SignNextCommitment() (lnwire.Sig, []lnwire.Sig,
// party, then we're unable to create new states. Each time we create a
// new state, we consume a prior revocation point.
commitPoint := lc.channelState.RemoteNextRevocation
if lc.remoteCommitChain.hasUnackedCommitment() || commitPoint == nil {
unacked := lc.remoteCommitChain.hasUnackedCommitment()
if unacked || commitPoint == nil {
lc.log.Tracef("waiting for remote ack=%v, nil "+
"RemoteNextRevocation: %v", unacked, commitPoint == nil)
return sig, htlcSigs, nil, ErrNoWindow
}