Commit 8fdeeb1
feat(batcher): altda->ethda failover (#34)
* test(altda): add test for altda->ethda failover
* feat(batcher): altda->ethda failover when altda is down
* chore: fix typos
* fix(fakeDAServer): handlePut was still handling put when in failover mode
* Update op-batcher/batcher/driver.go
Co-authored-by: Gaston Ponti <pontigaston@gmail.com>
* chore: better logs in batcher
* test(kt-devnet): add batcher failover kurtosis test (#33)
* test(kt-devnet): add batcher failover test
* chore(kt-devnet): use new proxy image v1.6.5 which has memstore rest routes
* test(kt-devnet): fix TestFailover + add comments/logs
* ci(kt-devnet): run new kurtosis failover test in ci
* test(kt-devnet): remove enclaveCtx from test harness
Was not being used and I had put it there only "in case"
* test(kt-devnet): refactor failover test to not use hardcoded 10 constant
Define l1BlocksQueriedForBatcherTxs and better describe how tests use it
Also refactored graphql query to use both FROM and TO blocks, not only FROM. This makes the semantics of the tests easier to understand.
* test(kt-devnet): better comments for requireBatcherTxsToBeFromLayer function
* teest(kt-devnet): return err from getEndpointsFromKurtosis if EnclaveServiceEndpoints field doesn't have kurtosis tag
* docs(kt-failover-test): rename getEndpointsFromKurtosis -> getPublicEndpointsFromKurtosis
Also better document the function to explain what its doing
* style(kt-devnet): reformat a weirdly tabbed comment
* docs(kt-failover-test): describe why we use graphql api insead of l1retriever api
* docs(kt-failover-test): add note mentioning that kt tests need to be run sequentially
* docs(kt-failover-test): update test name to TestFailoverToEthDACalldata
This is done to reflect the fact that batcher currently doesn't support failing over to calldata.
* style: fix lint
* docs(e2eutils): document returned values for WaitForBlockWithTxFromSender
* docs(e2eutils): add doc comment for TransactionsBySender
* docs(op-e2e): remove wrong comment in failover_test
* docs(op-e2e): better test comment in failover_test
* style(op-e2e): merged 2 if statements into one
* style: fix comment typo
---------
Co-authored-by: Gaston Ponti <pontigaston@gmail.com>1 parent 3efe6e7 commit 8fdeeb1
20 files changed
Lines changed: 661 additions & 34 deletions
File tree
- .github/workflows
- kurtosis-devnet
- tests/eigenda
- op-alt-da
- op-batcher/batcher
- op-e2e
- e2eutils
- geth
- transactions
- system
- altda
- da
- e2esys
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
89 | 91 | | |
90 | 92 | | |
91 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
162 | 165 | | |
163 | 166 | | |
164 | 167 | | |
| |||
0 commit comments