Skip to content

Commit 06beb5d

Browse files
authored
fix(rollup): only enable chain-monitor in rollup-relayer (#1569)
Co-authored-by: colinlyguo <[email protected]>
1 parent 968a396 commit 06beb5d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

common/version/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"runtime/debug"
66
)
77

8-
var tag = "v4.4.80"
8+
var tag = "v4.4.81"
99

1010
var commit = func() string {
1111
if info, ok := debug.ReadBuildInfo(); ok {

rollup/internal/controller/relayer/l2_relayer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ func NewLayer2Relayer(ctx context.Context, l2Client *ethclient.Client, db *gorm.
154154
}
155155

156156
// chain_monitor client
157-
if cfg.ChainMonitor.Enabled {
157+
if serviceType == ServiceTypeL2RollupRelayer && cfg.ChainMonitor.Enabled {
158158
layer2Relayer.chainMonitorClient = resty.New()
159159
layer2Relayer.chainMonitorClient.SetRetryCount(cfg.ChainMonitor.TryTimes)
160160
layer2Relayer.chainMonitorClient.SetTimeout(time.Duration(cfg.ChainMonitor.TimeOut) * time.Second)

0 commit comments

Comments
 (0)