Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
colinlyguo committed Jul 6, 2024
1 parent 9c58502 commit c47d5ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 2 additions & 5 deletions rollup/internal/controller/relayer/l1_relayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 3 additions & 1 deletion rollup/internal/controller/relayer/l2_relayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c47d5ce

Please sign in to comment.