Skip to content

Commit

Permalink
Op-Conductor Localnet (hemilabs#267)
Browse files Browse the repository at this point in the history
* prove out op-conductor in localnet

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

* test fixes

* remove references of op-geth-l1 in docker-compose
  • Loading branch information
ClaytonNorthey92 authored Oct 25, 2024
1 parent 35a1b23 commit b812c56
Show file tree
Hide file tree
Showing 11 changed files with 504 additions and 20 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 b812c56

Please sign in to comment.