Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support the Arbitrum BoLD Challenge Protocol in Nitro #2362

Open
wants to merge 604 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
604 commits
Select commit Hold shift + click to select a range
47c3d2f
fix lock
amsanghi Mar 13, 2024
9d2b418
reenable
rauljordan Mar 13, 2024
17ed36e
bold
rauljordan Mar 14, 2024
a4d590f
storage
rauljordan Mar 14, 2024
0fbc8de
min
rauljordan Mar 14, 2024
30d3716
edit
rauljordan Mar 14, 2024
8f53605
slice storage
rauljordan Mar 14, 2024
dd184c4
edits
rauljordan Mar 14, 2024
a9e1940
bold commit
rauljordan Mar 14, 2024
abe6a64
edit bold
rauljordan Mar 20, 2024
17fe12c
update bold
rauljordan Mar 22, 2024
992a30a
Update BOLD state provider for overflow assertions
PlasmaPower Mar 22, 2024
0fe01f3
test fix
rauljordan Mar 22, 2024
a0f607c
Merge branch 'sepolia-tooling-merge' into overflow-assertions-state-p…
PlasmaPower Mar 23, 2024
a3acc9a
update timer cache
rauljordan Mar 25, 2024
fbc6088
revive e2e test
rauljordan Mar 26, 2024
2d12159
add in
rauljordan Mar 26, 2024
9dfdc14
wait for safe
rauljordan Mar 26, 2024
b140600
Merge branch 'sepolia-tooling-merge' of github.com:OffchainLabs/nitro…
rauljordan Mar 26, 2024
d45f125
edit bold
rauljordan Mar 26, 2024
147a7ff
add execution node offline metrics
amsanghi Mar 26, 2024
34eac84
bold
rauljordan Mar 26, 2024
d315508
Merge branch 'sepolia-tooling-merge' of github.com:OffchainLabs/nitro…
rauljordan Mar 26, 2024
1114526
Merge branch 'sepolia-tooling-merge' into overflow-assertions-state-p…
PlasmaPower Mar 26, 2024
8cc83e6
update bold
rauljordan Mar 26, 2024
f6aa184
many chal levels
rauljordan Mar 26, 2024
4f0578c
sync bold
rauljordan Mar 26, 2024
175bf8f
test to check for challenge win
rauljordan Mar 27, 2024
d4b39c9
add in test fixes and lint
rauljordan Mar 27, 2024
7612671
update bold commit
rauljordan Mar 27, 2024
d84fed7
tag
rauljordan Mar 27, 2024
de8f91c
edited
rauljordan Mar 27, 2024
f766cab
bold ref
rauljordan Mar 27, 2024
0aebf14
trying to fix
rauljordan Mar 27, 2024
22ec174
test edit
rauljordan Mar 27, 2024
ab39b5a
config test
rauljordan Mar 27, 2024
6b7e642
test fix
rauljordan Mar 27, 2024
11117b4
lint
rauljordan Mar 27, 2024
8593f5f
lint
rauljordan Mar 27, 2024
aa0af74
db path
rauljordan Mar 27, 2024
a7ca863
lint
rauljordan Mar 27, 2024
315132f
revamp
rauljordan Mar 27, 2024
c8f2a04
support history commit in assertions
rauljordan Mar 27, 2024
abbc2f8
test
rauljordan Mar 27, 2024
a46caf7
add hist commit
rauljordan Mar 27, 2024
bdcd5d9
challenge test run
rauljordan Mar 27, 2024
9e3be32
para
rauljordan Mar 27, 2024
1d5c3c7
add log
rauljordan Mar 27, 2024
16927dc
more checks
rauljordan Mar 27, 2024
74a93c4
rev
rauljordan Mar 27, 2024
3d69fc4
flakey with bold
rauljordan Mar 27, 2024
614c719
add bold
rauljordan Mar 27, 2024
f815e04
hist commit
rauljordan Mar 27, 2024
ee5d1e4
rem
rauljordan Mar 27, 2024
8a25e9e
commit edit
rauljordan Mar 27, 2024
0ac8cb0
fix up
rauljordan Mar 27, 2024
568285d
Increase challenge tests timeout to 30m
PlasmaPower Mar 27, 2024
2542157
Fix TestChallengeProtocolBOLD shutdown
PlasmaPower Mar 27, 2024
f5deb86
test check
rauljordan Mar 28, 2024
061bb89
build tag
rauljordan Mar 28, 2024
94bf8d2
Merge branch 'master' into sepolia-tooling-merge
amsanghi Mar 28, 2024
9e4f6e1
fix
amsanghi Mar 28, 2024
ed69007
unskip test with fix
amsanghi Mar 28, 2024
86fddb2
Merge branch 'sepolia-tooling-merge' into overflow-assertions-state-p…
amsanghi Mar 28, 2024
17a9d02
Add back FindBatchContainingMessageIndex, was removed in the nitro la…
amsanghi Mar 28, 2024
e037379
unskip more test
amsanghi Mar 28, 2024
a459cb8
unskip more test
amsanghi Mar 28, 2024
6ee4ec0
Merge pull request #2201 from OffchainLabs/overflow-assertions-state-…
rauljordan Mar 28, 2024
bc030c0
rem debug bin
rauljordan Mar 28, 2024
5c6c886
bold commit
rauljordan Mar 28, 2024
0d2c8c6
finish once osp
rauljordan Mar 28, 2024
cdcd4c7
confirm at osp
rauljordan Mar 28, 2024
877f618
revert build tag
rauljordan Mar 28, 2024
820a1bc
parallel
rauljordan Mar 28, 2024
77b90c8
Merge branch 'master' into sepolia-tooling-merge
rauljordan Mar 28, 2024
ea84f61
update bold commit
rauljordan Mar 29, 2024
d1cb639
add in bold commit
rauljordan Mar 29, 2024
ed5edb8
update bold commit
rauljordan Mar 29, 2024
4c63dfb
log line fixes
rauljordan Mar 30, 2024
3302de6
nogo
rauljordan Mar 30, 2024
dc88572
edit bold pin
rauljordan Mar 31, 2024
67c5ab4
update bold commit
rauljordan Apr 1, 2024
43b0529
bold commit
rauljordan Apr 2, 2024
37e2f1b
bold commit
rauljordan Apr 2, 2024
ed41af8
latest bold code
rauljordan Apr 5, 2024
09ec53c
go errors
rauljordan Apr 5, 2024
46aaca3
update bold
rauljordan Apr 11, 2024
1369f29
sync edits from master
rauljordan May 13, 2024
1cb57e3
update geth
rauljordan May 13, 2024
450ccd8
sync more edits
rauljordan May 13, 2024
cce4b22
update submods
rauljordan May 13, 2024
95df92b
update bold commit
rauljordan May 13, 2024
9cc5cdb
edits to build
rauljordan May 13, 2024
573110c
build system test
rauljordan May 13, 2024
7ba9dc2
update bold ref
rauljordan May 14, 2024
6158550
Merge branch 'master' into sepolia-tooling-merge
rauljordan May 14, 2024
3f2b6d7
bold commit
rauljordan May 14, 2024
296c0fc
fix build
rauljordan May 14, 2024
4746270
pass state provider tests again
rauljordan May 14, 2024
b9e2552
edit back tags
rauljordan May 14, 2024
574d7bd
edits testing perf
rauljordan May 14, 2024
0cc28bb
bold commit
rauljordan May 15, 2024
60fa5a0
Merge branch 'master' into sepolia-tooling-merge
amsanghi May 24, 2024
703630a
bold commit
rauljordan May 30, 2024
0d8cf2e
Merge branch 'sepolia-tooling-merge' of github.com:OffchainLabs/nitro…
rauljordan May 30, 2024
df66e5b
pass test
rauljordan May 30, 2024
90e5cc8
Cleanup data_poster.go
amsanghi May 31, 2024
cf718e5
clean up block_processor.go
amsanghi May 31, 2024
a6ca05b
clean up backlog_test.go
amsanghi May 31, 2024
7785926
clean up block_recorder.go
amsanghi May 31, 2024
162edd9
clean up executionengine.go
amsanghi May 31, 2024
d078915
clean up node.go
amsanghi May 31, 2024
3eb42c7
clean up nitro.log
amsanghi May 31, 2024
8d96ae9
clean up block_validator.go
amsanghi May 31, 2024
920ac59
clean up state_provider.go
amsanghi May 31, 2024
941d2a2
clean up stateless_block_validator.go
amsanghi May 31, 2024
5bba5e0
clean up assertion_on_large_number_of_block_test.go
amsanghi May 31, 2024
9d720a8
clean up bold_challenge_protocol_test.go
amsanghi May 31, 2024
2467ac0
clean up CreateBoldExecutionRun
amsanghi May 31, 2024
22ccdb7
Clean up manager call
amsanghi May 31, 2024
2a44c92
Merge branch 'master' into bold-review
amsanghi May 31, 2024
b8c6502
support bold main
rauljordan Jun 3, 2024
100ad6e
support config
rauljordan Jun 3, 2024
abbcd20
edits
rauljordan Jun 3, 2024
5935794
bold commit
rauljordan Jun 3, 2024
2cb59b9
get staked info
rauljordan Jun 4, 2024
a7f2fbe
support bold initialization in staker
rauljordan Jun 4, 2024
053cb36
support macos in download machine
rauljordan Jun 4, 2024
6c4c401
Merge branch 'master' into bold-review
rauljordan Jun 6, 2024
7b77f7f
address some review comments
rauljordan Jun 6, 2024
4e7b4a5
Merge branch 'bold-review' of github.com:OffchainLabs/nitro into bold…
rauljordan Jun 6, 2024
cbc3f7e
revert arbitrator edits
rauljordan Jun 6, 2024
983a1e8
revert some old stuff
rauljordan Jun 6, 2024
2a313c1
arbitrator
rauljordan Jun 6, 2024
6835a7b
cache comments
rauljordan Jun 7, 2024
099d03c
sync
rauljordan Jun 7, 2024
bfba244
commentary and cleanup
rauljordan Jun 7, 2024
5ccbbb4
edit names
rauljordan Jun 7, 2024
af8cc34
staker switch elsewhere
rauljordan Jun 7, 2024
ba2e3b1
bridgegen
rauljordan Jun 7, 2024
a171c95
more porting
rauljordan Jun 7, 2024
0375950
multiprotocol switcher
rauljordan Jun 7, 2024
b9c6c10
define the multiprotocol staker
rauljordan Jun 7, 2024
c3d8ec8
builds
rauljordan Jun 7, 2024
4e599d4
Merge branch 'master' into bold-review
rauljordan Jun 11, 2024
751f1d9
bold commit
rauljordan Jun 11, 2024
9a9012d
Merge branch 'bold-review' of github.com:OffchainLabs/nitro into bold…
rauljordan Jun 11, 2024
192e047
bold item
rauljordan Jun 11, 2024
6a33e3e
provide block validator
rauljordan Jun 11, 2024
33e2ca8
rev
rauljordan Jun 11, 2024
6470551
use stateless
rauljordan Jun 11, 2024
e57b0b0
add challenge tags
rauljordan Jun 11, 2024
737b99e
Merge branch 'master' into bold-review
rauljordan Jun 11, 2024
9ae02fc
Merge branch 'master' into bold-review
rauljordan Jun 11, 2024
28ba3e6
Merge branch 'bold-review' of github.com:OffchainLabs/nitro into bold…
rauljordan Jun 11, 2024
0b217ac
edit
rauljordan Jun 11, 2024
573880a
Merge branch 'master' into bold-review
rauljordan Jun 11, 2024
9363a29
build
rauljordan Jun 11, 2024
e721188
Merge branch 'bold-review' of github.com:OffchainLabs/nitro into bold…
rauljordan Jun 11, 2024
0b59ee3
master
rauljordan Jun 11, 2024
494d2a6
geth
rauljordan Jun 11, 2024
43d3da8
lint
rauljordan Jun 11, 2024
9aa0a82
Merge branch 'master' into bold-review
rauljordan Jun 12, 2024
99a6252
chal cache
rauljordan Jun 12, 2024
a2d9e45
check positive condition
rauljordan Jun 12, 2024
b2f8e53
config items
rauljordan Jun 12, 2024
06f49df
dedup
rauljordan Jun 12, 2024
6c2781e
logs on switch
rauljordan Jun 12, 2024
6704f92
ensure single instance init and use block latest validated state
rauljordan Jun 12, 2024
2c58a9e
ci for state provider pass
rauljordan Jun 13, 2024
c2b0f82
ci
rauljordan Jun 13, 2024
ad8b825
ci runs but need diff validators
rauljordan Jun 13, 2024
4426b46
ci challenge
rauljordan Jun 13, 2024
e5e4ea1
gotags
rauljordan Jun 13, 2024
6abb7cb
Merge branch 'master' into bold-review
rauljordan Jun 13, 2024
928a8f8
unit tests
rauljordan Jun 13, 2024
d66cc0e
Merge branch 'bold-review' of github.com:OffchainLabs/nitro into bold…
rauljordan Jun 13, 2024
d7efbab
chal timeout
rauljordan Jun 13, 2024
57a0d95
Merge branch 'master' into bold-review
rauljordan Jun 13, 2024
b3f29c0
test flakey when parallel
rauljordan Jun 13, 2024
9565823
rem
rauljordan Jun 13, 2024
528f868
Merge branch 'bold-review' of github.com:OffchainLabs/nitro into bold…
rauljordan Jun 13, 2024
69bc7bd
tags
rauljordan Jun 13, 2024
886a21d
much simpler execution run
rauljordan Jun 13, 2024
e9cc824
include server arb changes
rauljordan Jun 14, 2024
58e093f
exec run pass
rauljordan Jun 14, 2024
f89cbd8
bold commit
rauljordan Jun 14, 2024
6a8b741
Merge branch 'get-machine-hashes-with-step' into bold-review
rauljordan Jun 17, 2024
06663c2
include latest
rauljordan Jun 17, 2024
c3f737e
Merge branch 'bold-challenge-cache' into bold-review
rauljordan Jun 17, 2024
7ed6155
builds
rauljordan Jun 17, 2024
d770502
Merge branch 'get-machine-hashes-with-step' into bold-review
rauljordan Jun 17, 2024
8f8459d
state provider changes
rauljordan Jun 18, 2024
513bee2
Merge branch 'bold-challenge-cache' into bold-review
rauljordan Jun 18, 2024
30f125b
Merge branch 'master' into bold-review
rauljordan Jun 18, 2024
25d0437
Merge branch 'master' into bold-review
rauljordan Jun 20, 2024
8fb0788
bold item
rauljordan Jun 20, 2024
9ab81eb
bold commit
rauljordan Jun 20, 2024
59fc8a5
bold commit
rauljordan Jun 20, 2024
5774b3d
update bold branch
rauljordan Jun 21, 2024
8e3e19a
update bold
rauljordan Jun 24, 2024
0437e7b
add osp logging
rauljordan Jun 24, 2024
4bfe480
Merge branch 'master' into bold-review
rauljordan Jun 24, 2024
9973230
edits
rauljordan Jun 24, 2024
746978c
add in validator
rauljordan Jun 25, 2024
a6a2312
edits
rauljordan Jun 25, 2024
a6a29e1
edit bold commit
rauljordan Jun 25, 2024
a63950c
norace
rauljordan Jun 25, 2024
20a9857
edit bold main
rauljordan Jun 29, 2024
e0154ec
Merge branch 'master' into bold-review
amsanghi Jul 1, 2024
65819f0
Merge branch 'get-machine-hashes-with-step' into bold-review
amsanghi Jul 1, 2024
5589f2b
minor fix
amsanghi Jul 1, 2024
6656d0e
Merge branch 'bold-review' of github.com:OffchainLabs/nitro into bold…
rauljordan Jul 8, 2024
3b9ad4d
edits to state provider
rauljordan Jul 8, 2024
2506150
sync master
rauljordan Jul 8, 2024
7012c91
Merge branch 'master' into bold-review
rauljordan Jul 9, 2024
5f2e60d
edits
rauljordan Jul 9, 2024
658a5ce
commits
rauljordan Jul 9, 2024
7ce2089
Merge branch 'master' into bold-review
rauljordan Jul 10, 2024
8265691
Merge branch 'master' into bold-review
rauljordan Jul 12, 2024
a525bb1
Merge branch 'master' into bold-review
rauljordan Jul 15, 2024
0a078a7
Merge branch 'master' into bold-review
rauljordan Jul 18, 2024
051095f
Merge branch 'master' into bold-review
amsanghi Aug 5, 2024
c56a509
Changes based on PR comments
amsanghi Aug 5, 2024
d3e62a4
fix build and lint
amsanghi Aug 5, 2024
6011b74
Changes based on PR comments and fix build
amsanghi Aug 6, 2024
633f175
Merge branch 'master' into bold-review
amsanghi Aug 6, 2024
57af6a4
reword ExecutionStateAfterPreviousState comment
amsanghi Aug 6, 2024
533fceb
add dangerous option where validator is nil and node just assumes all…
amsanghi Aug 6, 2024
e3b8d70
checks for the wasmModuleRoot in the rollup and updates validator reg…
amsanghi Aug 6, 2024
c6faf78
Changes based on PR comments
amsanghi Aug 6, 2024
2d479d1
Merge branch 'master' into bold-review
amsanghi Aug 6, 2024
e1d40d3
fix test
amsanghi Aug 6, 2024
4914c34
fix test
amsanghi Aug 7, 2024
abdc7a1
rename function
amsanghi Aug 7, 2024
efdeb8d
Merge branch 'master' into bold-review
amsanghi Aug 13, 2024
8446078
Changes based on PR comments
amsanghi Aug 13, 2024
3b2cfdb
Send UpdateLatestStaked and UpdateLatestConfirmed notifications
amsanghi Aug 14, 2024
b28b78c
Merge branch 'master' into bold-review
amsanghi Aug 14, 2024
220d133
Merge branch 'master' into bold-review
amsanghi Aug 27, 2024
3c86220
clean up
amsanghi Aug 27, 2024
2205adb
Merge branch 'master' into bold-review
amsanghi Aug 28, 2024
d97ae8e
fix build
amsanghi Aug 28, 2024
748a9f6
fix build and panic
amsanghi Aug 28, 2024
f3bf2ac
fix test
amsanghi Aug 28, 2024
e734a4d
Add build tags
amsanghi Aug 29, 2024
88d143b
update bold main branch
rauljordan Sep 11, 2024
8e12821
update main
rauljordan Sep 11, 2024
c102262
Merge branch 'master' into bold-review
eljobe Sep 19, 2024
c80e048
Fix rawdb -> ethdb change
eljobe Sep 19, 2024
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
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
redis:
image: redis
ports:
- 6379:6379
- 6379:6379

strategy:
fail-fast: false
Expand Down Expand Up @@ -203,7 +203,7 @@ jobs:
packages=`go list ./...`
for package in $packages; do
echo running tests for $package
if ! stdbuf -oL gotestsum --format short-verbose --packages="$package" --rerun-fails=2 --no-color=false -- -coverprofile=coverage.txt -covermode=atomic -coverpkg=./...,./go-ethereum/... -tags=challengetest -run=TestChallenge > >(stdbuf -oL tee -a full.log | grep -vE "INFO|seal"); then
if ! stdbuf -oL gotestsum --format short-verbose --packages="$package" --rerun-fails=2 --no-color=false -- -timeout 60m -coverprofile=coverage.txt -covermode=atomic -coverpkg=./...,./go-ethereum/... -tags=challengetest -run=TestChallenge > >(stdbuf -oL tee -a full.log | grep -vE "INFO|seal"); then
exit 1
fi
done
Expand Down Expand Up @@ -243,4 +243,4 @@ jobs:
fail_ci_if_error: false
files: ./coverage.txt,./coverage-redis.txt
verbose: false
token: ${{ secrets.CODECOV_TOKEN }}
token: ${{ secrets.CODECOV_TOKEN }}
amsanghi marked this conversation as resolved.
Show resolved Hide resolved
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
[submodule "nitro-testnode"]
path = nitro-testnode
url = https://github.com/OffchainLabs/nitro-testnode.git
[submodule "bold"]
path = bold
url = https://github.com/OffchainLabs/bold.git
[submodule "arbitrator/langs/rust"]
path = arbitrator/langs/rust
url = https://github.com/OffchainLabs/stylus-sdk-rs.git
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ COPY ./safe-smart-account ./safe-smart-account
COPY ./solgen/gen.go ./solgen/
COPY ./fastcache ./fastcache
COPY ./go-ethereum ./go-ethereum
COPY ./bold ./bold
COPY --from=brotli-wasm-export / target/
COPY --from=contracts-builder workspace/contracts/build/contracts/src/precompiles/ contracts/build/contracts/src/precompiles/
COPY --from=contracts-builder workspace/contracts/node_modules/@offchainlabs/upgrade-executor/build/contracts/src/UpgradeExecutor.sol/UpgradeExecutor.json contracts/
Expand Down Expand Up @@ -233,6 +234,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
COPY go.mod go.sum ./
COPY go-ethereum/go.mod go-ethereum/go.sum go-ethereum/
COPY fastcache/go.mod fastcache/go.sum fastcache/
COPY bold/go.mod bold/go.sum bold/
RUN go mod download
COPY . ./
COPY --from=contracts-builder workspace/contracts/build/ contracts/build/
Expand Down
14 changes: 14 additions & 0 deletions arbnode/dataposter/data_poster.go
Original file line number Diff line number Diff line change
Expand Up @@ -740,13 +740,27 @@ func (p *DataPoster) feeAndTipCaps(ctx context.Context, nonce uint64, gasLimit u
return newBaseFeeCap, newTipCap, newBlobFeeCap, nil
}

func (p *DataPoster) PostSimpleTransactionAutoNonce(ctx context.Context, to common.Address, calldata []byte, gasLimit uint64, value *big.Int) (*types.Transaction, error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function was added to aid in the high-concurrency of BOLD moves and transactions

p.mutex.Lock()
defer p.mutex.Unlock()
nonce, _, _, _, err := p.getNextNonceAndMaybeMeta(ctx, 1)
if err != nil {
return nil, err
}
return p.postTransactionWithMutex(ctx, time.Now(), nonce, nil, to, calldata, gasLimit, value, nil, nil)
}

func (p *DataPoster) PostSimpleTransaction(ctx context.Context, nonce uint64, to common.Address, calldata []byte, gasLimit uint64, value *big.Int) (*types.Transaction, error) {
return p.PostTransaction(ctx, time.Now(), nonce, nil, to, calldata, gasLimit, value, nil, nil)
}

func (p *DataPoster) PostTransaction(ctx context.Context, dataCreatedAt time.Time, nonce uint64, meta []byte, to common.Address, calldata []byte, gasLimit uint64, value *big.Int, kzgBlobs []kzg4844.Blob, accessList types.AccessList) (*types.Transaction, error) {
p.mutex.Lock()
defer p.mutex.Unlock()
return p.postTransactionWithMutex(ctx, dataCreatedAt, nonce, meta, to, calldata, gasLimit, value, kzgBlobs, accessList)
}

func (p *DataPoster) postTransactionWithMutex(ctx context.Context, dataCreatedAt time.Time, nonce uint64, meta []byte, to common.Address, calldata []byte, gasLimit uint64, value *big.Int, kzgBlobs []kzg4844.Blob, accessList types.AccessList) (*types.Transaction, error) {

if p.config().DisableNewTx {
return nil, fmt.Errorf("posting new transaction is disabled")
Expand Down
6 changes: 3 additions & 3 deletions arbnode/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ type Node struct {
MessagePruner *MessagePruner
BlockValidator *staker.BlockValidator
StatelessBlockValidator *staker.StatelessBlockValidator
Staker *staker.Staker
Staker *staker.MultiProtocolStaker
BroadcastServer *broadcaster.Broadcaster
BroadcastClients *broadcastclients.BroadcastClients
SeqCoordinator *SeqCoordinator
Expand Down Expand Up @@ -607,7 +607,7 @@ func createNodeImpl(
}
}

var stakerObj *staker.Staker
var stakerObj *staker.MultiProtocolStaker
var messagePruner *MessagePruner
var stakerAddr common.Address

Expand Down Expand Up @@ -660,7 +660,7 @@ func createNodeImpl(
confirmedNotifiers = append(confirmedNotifiers, messagePruner)
}

stakerObj, err = staker.NewStaker(l1Reader, wallet, bind.CallOpts{}, config.Staker, blockValidator, statelessBlockValidator, nil, confirmedNotifiers, deployInfo.ValidatorUtils, fatalErrChan)
stakerObj, err = staker.NewMultiProtocolStaker(l1Reader, wallet, bind.CallOpts{}, config.Staker, blockValidator, statelessBlockValidator, nil, confirmedNotifiers, deployInfo.ValidatorUtils, deployInfo.Bridge, fatalErrChan)
if err != nil {
return nil, err
}
Expand Down
1 change: 1 addition & 0 deletions bold
Submodule bold added at 6c151c
1 change: 1 addition & 0 deletions cmd/chaininfo/chain_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,6 @@ type RollupAddresses struct {
UpgradeExecutor common.Address `json:"upgrade-executor"`
ValidatorUtils common.Address `json:"validator-utils"`
ValidatorWalletCreator common.Address `json:"validator-wallet-creator"`
StakeToken common.Address `json:"stake-token"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BOLD requires this new field as part of the rollup addresses, which is the address of the token used for challenge bonds

DeployedAt uint64 `json:"deployed-at"`
}
34 changes: 19 additions & 15 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ replace github.com/VictoriaMetrics/fastcache => ./fastcache

replace github.com/ethereum/go-ethereum => ./go-ethereum

replace github.com/OffchainLabs/bold => ./bold

require (
github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible
github.com/OffchainLabs/bold v0.0.0-00010101000000-000000000000
github.com/Shopify/toxiproxy v2.1.4+incompatible
github.com/alicebob/miniredis/v2 v2.32.1
github.com/andybalholm/brotli v1.0.4
Expand All @@ -21,13 +24,14 @@ require (
github.com/codeclysm/extract/v3 v3.0.2
github.com/dgraph-io/badger/v4 v4.2.0
github.com/enescakir/emoji v1.0.0
github.com/ethereum/go-ethereum v1.10.26
github.com/ethereum/go-ethereum v1.12.0
github.com/fatih/structtag v1.2.0
github.com/gdamore/tcell/v2 v2.7.1
github.com/go-redis/redis/v8 v8.11.5
github.com/gobwas/httphead v0.1.0
github.com/gobwas/ws v1.2.1
github.com/gobwas/ws-examples v0.0.0-20190625122829-a9e8908d9484
github.com/google/btree v1.1.2
github.com/google/go-cmp v0.6.0
github.com/google/uuid v1.3.0
github.com/hashicorp/golang-lru/v2 v2.0.7
Expand All @@ -44,21 +48,17 @@ require (
github.com/wealdtech/go-merkletree v1.0.0
golang.org/x/crypto v0.21.0
golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa
golang.org/x/sys v0.18.0
golang.org/x/sys v0.20.0
golang.org/x/term v0.18.0
golang.org/x/tools v0.16.0
gopkg.in/natefinch/lumberjack.v2 v2.0.0
)

require (
github.com/google/btree v1.1.2 // indirect
github.com/google/go-querystring v1.1.0 // indirect
)
require github.com/google/go-querystring v1.1.0 // indirect

require (
github.com/DataDog/zstd v1.4.5 // indirect
github.com/DataDog/zstd v1.5.2 // indirect
github.com/Microsoft/go-winio v0.6.1 // indirect
github.com/StackExchange/wmi v1.2.1 // indirect
github.com/VictoriaMetrics/fastcache v1.12.1 // indirect
github.com/alicebob/gopher-json v0.0.0-20200520072559-a9ecdc9d1d3a // indirect
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.1 // indirect
Expand All @@ -77,10 +77,10 @@ require (
github.com/aws/smithy-go v1.15.0 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/bits-and-blooms/bitset v1.10.0 // indirect
github.com/btcsuite/btcd/btcec/v2 v2.2.0 // indirect
github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/cockroachdb/errors v1.9.1 // indirect
github.com/cockroachdb/logtags v0.0.0-20211118104740-dabe8e521a4f // indirect
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect
github.com/cockroachdb/redact v1.1.3 // indirect
github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect
github.com/consensys/bavard v0.1.13 // indirect
Expand All @@ -103,7 +103,7 @@ require (
github.com/gballet/go-libpcsclite v0.0.0-20190607065134-2772fd86a8ff // indirect
github.com/gballet/go-verkle v0.1.1-0.20231031103413-a67434b50f46 // indirect
github.com/gdamore/encoding v1.0.0 // indirect
github.com/getsentry/sentry-go v0.12.0 // indirect
github.com/getsentry/sentry-go v0.18.0 // indirect
github.com/go-ole/go-ole v1.3.0 // indirect
github.com/go-sourcemap/sourcemap v2.1.3+incompatible // indirect
github.com/gobwas/pool v0.2.1 // indirect
Expand All @@ -117,6 +117,7 @@ require (
github.com/google/flatbuffers v1.12.1 // indirect
github.com/google/go-github/v62 v62.0.0
github.com/google/pprof v0.0.0-20231023181126-ff6d637d2a7b // indirect
github.com/gorilla/mux v1.8.0 // indirect
github.com/gorilla/websocket v1.5.0 // indirect
github.com/graph-gophers/graphql-go v1.3.0 // indirect
github.com/h2non/filetype v1.0.6 // indirect
Expand All @@ -126,6 +127,7 @@ require (
github.com/huin/goupnp v1.3.0 // indirect
github.com/jackpal/go-nat-pmp v1.0.2 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/jmoiron/sqlx v1.3.5 // indirect
github.com/juju/errors v0.0.0-20181118221551-089d3ea4e4d5 // indirect
github.com/juju/loggo v0.0.0-20180524022052-584905176618 // indirect
github.com/klauspost/compress v1.17.2 // indirect
Expand All @@ -135,7 +137,8 @@ require (
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-runewidth v0.0.15 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
github.com/mattn/go-sqlite3 v1.14.6 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/pointerstructure v1.2.0 // indirect
github.com/mitchellh/reflectwalk v1.0.2 // indirect
Expand All @@ -144,14 +147,14 @@ require (
github.com/opentracing/opentracing-go v1.1.0 // indirect
github.com/prometheus/client_golang v1.14.0 // indirect
github.com/prometheus/client_model v0.4.0 // indirect
github.com/prometheus/common v0.37.0 // indirect
github.com/prometheus/procfs v0.8.0 // indirect
github.com/prometheus/common v0.39.0 // indirect
github.com/prometheus/procfs v0.9.0 // indirect
github.com/rhnvrm/simples3 v0.6.1 // indirect
github.com/rivo/uniseg v0.4.7 // indirect
github.com/rogpeppe/go-internal v1.9.0 // indirect
github.com/rs/cors v1.7.0 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible // indirect
github.com/shirou/gopsutil v3.21.11+incompatible // indirect
github.com/status-im/keycard-go v0.2.0 // indirect
github.com/supranational/blst v0.3.11 // indirect
github.com/tklauser/go-sysconf v0.3.12 // indirect
Expand All @@ -162,6 +165,7 @@ require (
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
github.com/yuin/gopher-lua v1.1.1 // indirect
github.com/yusufpapurcu/wmi v1.2.2 // indirect
go.opencensus.io v0.22.5 // indirect
golang.org/x/mod v0.14.0 // indirect
golang.org/x/net v0.23.0 // indirect
Expand Down
Loading
Loading