diff --git a/rollup/internal/controller/relayer/l1_relayer.go b/rollup/internal/controller/relayer/l1_relayer.go index 921ccec4f2..df28475c46 100644 --- a/rollup/internal/controller/relayer/l1_relayer.go +++ b/rollup/internal/controller/relayer/l1_relayer.go @@ -21,12 +21,9 @@ import ( "scroll-tech/rollup/internal/orm" ) -// Layer1Relayer is responsible for -// 1. fetch pending L1Message from db -// 2. relay pending message to layer 2 node +// Layer1Relayer is responsible for updating L1 gas price oracle contract on L2. // -// Actions are triggered by new head from layer 1 geth node. -// @todo It's better to be triggered by watcher. +// Actions are triggered by L1 watcher. type Layer1Relayer struct { ctx context.Context diff --git a/rollup/internal/controller/relayer/l2_relayer.go b/rollup/internal/controller/relayer/l2_relayer.go index d49f136d67..eacb11f8aa 100644 --- a/rollup/internal/controller/relayer/l2_relayer.go +++ b/rollup/internal/controller/relayer/l2_relayer.go @@ -34,7 +34,9 @@ import ( rutils "scroll-tech/rollup/internal/utils" ) -// Layer2Relayer is responsible for committing and finalizing L2 blocks on L1. +// Layer2Relayer is responsible for: +// i. committing and finalizing L2 blocks on L1. +// ii. updating L2 gas price oracle contract on L1. type Layer2Relayer struct { ctx context.Context