Skip to content

Commit

Permalink
fix updateChannelStep to add the first_call attribute in log outputs
Browse files Browse the repository at this point in the history
Signed-off-by: Masanori Yoshida <[email protected]>
  • Loading branch information
siburu committed Aug 29, 2024
1 parent b6905a8 commit 86ade3a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/channel-upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,13 +259,15 @@ func NewUpgradeState(chanState chantypes.State, upgradeExists bool) (UpgradeStat

func upgradeChannelStep(src, dst *ProvableChain, targetSrcState, targetDstState UpgradeState, firstCall bool) (*RelayMsgs, error) {
logger := GetChannelPairLogger(src, dst)
logger = &log.RelayLogger{Logger: logger.With("first_call", firstCall)}

out := NewRelayMsgs()
if err := validatePaths(src, dst); err != nil {
logger.Error("failed to validate paths", err)
return nil, err
}

out := NewRelayMsgs()

// First, update the light clients to the latest header and return the header
sh, err := NewSyncHeaders(src, dst)
if err != nil {
Expand Down

0 comments on commit 86ade3a

Please sign in to comment.