From 06beb5dca3bc72173fd22ca75fba559cbf0bea57 Mon Sep 17 00:00:00 2001 From: colin <102356659+colinlyguo@users.noreply.github.com> Date: Fri, 6 Dec 2024 13:15:22 +0700 Subject: [PATCH] fix(rollup): only enable chain-monitor in rollup-relayer (#1569) Co-authored-by: colinlyguo --- common/version/version.go | 2 +- rollup/internal/controller/relayer/l2_relayer.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/version/version.go b/common/version/version.go index 4f9eb0c2e..1e467875b 100644 --- a/common/version/version.go +++ b/common/version/version.go @@ -5,7 +5,7 @@ import ( "runtime/debug" ) -var tag = "v4.4.80" +var tag = "v4.4.81" var commit = func() string { if info, ok := debug.ReadBuildInfo(); ok { diff --git a/rollup/internal/controller/relayer/l2_relayer.go b/rollup/internal/controller/relayer/l2_relayer.go index 6878f55dc..33f6921a9 100644 --- a/rollup/internal/controller/relayer/l2_relayer.go +++ b/rollup/internal/controller/relayer/l2_relayer.go @@ -154,7 +154,7 @@ func NewLayer2Relayer(ctx context.Context, l2Client *ethclient.Client, db *gorm. } // chain_monitor client - if cfg.ChainMonitor.Enabled { + if serviceType == ServiceTypeL2RollupRelayer && cfg.ChainMonitor.Enabled { layer2Relayer.chainMonitorClient = resty.New() layer2Relayer.chainMonitorClient.SetRetryCount(cfg.ChainMonitor.TryTimes) layer2Relayer.chainMonitorClient.SetTimeout(time.Duration(cfg.ChainMonitor.TimeOut) * time.Second)