Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
08aea85
Add L2CL disconnect helper
pcw109550 Apr 29, 2025
74acf84
refactor
pcw109550 Apr 29, 2025
cef3886
refactor
pcw109550 Apr 29, 2025
f18378f
Add TestUnsafeChainKnownToL2CL test
pcw109550 Apr 30, 2025
b8fa532
refactor
pcw109550 Apr 30, 2025
5ed565b
Expose default timeout in devstack dsl
pcw109550 Apr 30, 2025
7d24269
Refactor out sync status fetchers
pcw109550 Apr 30, 2025
295f046
comments
pcw109550 Apr 30, 2025
5046719
Harden test
pcw109550 Apr 30, 2025
834369a
Use devstack test require
pcw109550 Apr 30, 2025
c922cee
check verifier follow instead of exact sync with supervisor
pcw109550 Apr 30, 2025
ae14059
enrich log info and be tolerant for verifier
pcw109550 Apr 30, 2025
3272032
remove underflow
pcw109550 Apr 30, 2025
e9e213e
remove hash check
pcw109550 Apr 30, 2025
4b2772a
better comment and logging
pcw109550 May 5, 2025
1d14dd7
add more comment
pcw109550 May 5, 2025
7cdb4f1
simplify
pcw109550 May 5, 2025
0a7a484
remove incorrect rebase
pcw109550 May 6, 2025
1a9464c
fix test
pcw109550 May 6, 2025
e9fdc7f
consider real network
pcw109550 May 6, 2025
0e97789
correct rebase
pcw109550 May 9, 2025
68caabd
fix rebase
pcw109550 May 9, 2025
3a0e285
rebase fix
pcw109550 May 9, 2025
8518052
Add L2CL disconnect helper
pcw109550 Apr 29, 2025
44c1433
refactor
pcw109550 Apr 29, 2025
a15056e
refactor
pcw109550 Apr 29, 2025
927fdec
Expose default timeout in devstack dsl
pcw109550 Apr 30, 2025
aff9162
Refactor out sync status fetchers
pcw109550 Apr 30, 2025
1cd99c3
check verifier follow instead of exact sync with supervisor
pcw109550 Apr 30, 2025
8094c10
remove incorrect rebase
pcw109550 May 6, 2025
e1ca9d4
fix test
pcw109550 May 6, 2025
e762e59
Add L2CL disconnect helper
pcw109550 Apr 29, 2025
a91544c
refactor
pcw109550 Apr 29, 2025
6121cc0
refactor
pcw109550 Apr 29, 2025
e0ebfdd
Refactor out sync status fetchers
pcw109550 Apr 30, 2025
43aaec0
remove incorrect rebase
pcw109550 May 6, 2025
ae59a04
refactor
pcw109550 Apr 29, 2025
25e0545
refactor
pcw109550 Apr 29, 2025
95bcc28
wip
pcw109550 May 5, 2025
18b9b56
more logs
pcw109550 May 5, 2025
3bab772
temp
pcw109550 May 6, 2025
937b916
wonky fix
pcw109550 May 6, 2025
3592f37
temp
pcw109550 May 6, 2025
10ef6a6
better log
pcw109550 May 6, 2025
b83a4ca
unsafe chain ahead of backup supervisor
pcw109550 May 6, 2025
4ded6b4
impl done
pcw109550 May 6, 2025
4250134
add comments
pcw109550 May 6, 2025
95ce1b5
hash check
pcw109550 May 6, 2025
9f09a55
clarify comment
pcw109550 May 6, 2025
8da062e
Fix test naming
pcw109550 May 6, 2025
a3e3561
rebase correct
pcw109550 May 9, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions devnet-sdk/devstack/dsl/params.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package dsl

import "time"

const DefaultTimeout = 30 * time.Second
2 changes: 1 addition & 1 deletion op-devstack/dsl/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ package dsl

import "time"

const defaultTimeout = 30 * time.Second
const DefaultTimeout = 30 * time.Second
6 changes: 3 additions & 3 deletions op-devstack/dsl/supervisor.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func WithAllLocalUnsafeHeadsAdvancedBy(blocks uint64) func(cfg *VerifySyncStatus
func (s *Supervisor) VerifySyncStatus(opts ...func(config *VerifySyncStatusConfig)) {
cfg := applyOpts(VerifySyncStatusConfig{}, opts...)
initial := s.fetchSyncStatus()
ctx, cancel := context.WithTimeout(s.ctx, defaultTimeout)
ctx, cancel := context.WithTimeout(s.ctx, DefaultTimeout)
defer cancel()
err := wait.For(ctx, 1*time.Second, func() (bool, error) {
status := s.fetchSyncStatus()
Expand All @@ -69,7 +69,7 @@ func (s *Supervisor) VerifySyncStatus(opts ...func(config *VerifySyncStatusConfi

func (s *Supervisor) fetchSyncStatus() eth.SupervisorSyncStatus {
s.log.Debug("Fetching supervisor sync status")
ctx, cancel := context.WithTimeout(s.ctx, defaultTimeout)
ctx, cancel := context.WithTimeout(s.ctx, DefaultTimeout)
defer cancel()
syncStatus, err := retry.Do[eth.SupervisorSyncStatus](ctx, 2, retry.Fixed(500*time.Millisecond), func() (eth.SupervisorSyncStatus, error) {
syncStatus, err := s.inner.QueryAPI().SyncStatus(s.ctx)
Expand All @@ -87,7 +87,7 @@ func (s *Supervisor) fetchSyncStatus() eth.SupervisorSyncStatus {
}

func (s *Supervisor) SafeBlockID(chainID eth.ChainID) eth.BlockID {
ctx, cancel := context.WithTimeout(s.ctx, defaultTimeout)
ctx, cancel := context.WithTimeout(s.ctx, DefaultTimeout)
defer cancel()
syncStatus, err := retry.Do[eth.SupervisorSyncStatus](ctx, 2, retry.Fixed(500*time.Millisecond), func() (eth.SupervisorSyncStatus, error) {
syncStatus, err := s.inner.QueryAPI().SyncStatus(s.ctx)
Expand Down
Loading