Merge pull request #4151 from cfromknecht/cnct-log-fixes

contractcourt/chain_watchter: fix broken log stmts
This commit is contained in:
Olaoluwa Osuntokun 2020-04-03 18:08:32 -07:00 committed by GitHub
commit c88b910a35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -430,9 +430,11 @@ func newChainSet(chanState *channeldb.OpenChannel) (*chainSet, error) {
}
log.Debugf("ChannelPoint(%v): local_commit_type=%v, local_commit=%v",
chanState.ChanType, spew.Sdump(localCommit))
chanState.FundingOutpoint, chanState.ChanType,
spew.Sdump(localCommit))
log.Debugf("ChannelPoint(%v): remote_commit_type=%v, remote_commit=%v",
chanState.ChanType, spew.Sdump(remoteCommit))
chanState.FundingOutpoint, chanState.ChanType,
spew.Sdump(remoteCommit))
// Fetch the current known commit height for the remote party, and
// their pending commitment chain tip if it exists.
@ -458,7 +460,7 @@ func newChainSet(chanState *channeldb.OpenChannel) (*chainSet, error) {
if remoteChainTip != nil {
remotePendingCommit = &remoteChainTip.Commitment
log.Debugf("ChannelPoint(%v): remote_pending_commit_type=%v, "+
"remote_pending_commit=%v",
"remote_pending_commit=%v", chanState.FundingOutpoint,
chanState.ChanType,
spew.Sdump(remoteChainTip.Commitment))