Skip to content

Commit

Permalink
prove out op-conductor in localnet
Browse files Browse the repository at this point in the history
set up 3 sequencers, each controlled by op-conductors p2p'd via raft consensus

update localnet tests CI to kill 1 op-node, another should take over sequencing

decrease the initial btc blocks because 3000 is excessive (this will need testing over time)

updated l2 block time to 2 seconds, instead of 1, it's easier to follow this way IMO
  • Loading branch information
ClaytonNorthey92 committed Oct 2, 2024
1 parent 44ce468 commit 6b382b2
Show file tree
Hide file tree
Showing 11 changed files with 509 additions and 18 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/localnet-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,15 @@ jobs:
- name: "Download and verify dependencies"
run: make deps

- name: "build localnet"
run: docker compose -f ./e2e/docker-compose.yml build

- name: "run localnet"
run: docker compose -f ./e2e/docker-compose.yml up -d

- name: "kill an op-node after a minute"
run: sleep 60 && docker compose -f ./e2e/docker-compose.yml down op-node

- name: "get localnet stats"
working-directory: ./e2e/monitor
# XXX should this be a make command?
Expand Down
2 changes: 1 addition & 1 deletion e2e/deploy-config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"l1ChainID": 1337,
"l2ChainID": 901,
"l2BlockTime": 1,
"l2BlockTime": 2,
"maxSequencerDrift": 300,
"sequencerWindowSize": 200,
"channelTimeout": 120,
Expand Down
Loading

0 comments on commit 6b382b2

Please sign in to comment.