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 BOLD Challenges on Sepolia #2175

Closed
wants to merge 478 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
478 commits
Select commit Hold shift + click to select a range
77e0abc
deploy fix
rauljordan Dec 13, 2023
431b1fc
recache if always merkleize on
rauljordan Dec 13, 2023
6fba3af
tooling fixes
rauljordan Dec 13, 2023
8209ced
update recache
rauljordan Dec 13, 2023
186e21a
update levels
rauljordan Dec 13, 2023
5a0b949
more edits
rauljordan Dec 14, 2023
9c16e37
edit bold tooling
rauljordan Jan 20, 2024
4da2759
sum
rauljordan Jan 21, 2024
2b87e5c
include api
rauljordan Jan 22, 2024
ad4486e
update bold pr
rauljordan Jan 22, 2024
903e4d2
update bold commit
rauljordan Jan 23, 2024
9fce090
update deploy
rauljordan Jan 23, 2024
8cff433
edit state provider
rauljordan Jan 23, 2024
efe7842
edit exec run
rauljordan Jan 23, 2024
ac77aec
always merkleize
rauljordan Jan 23, 2024
bf9c32f
cap of 2
rauljordan Jan 23, 2024
d5dd021
edit
rauljordan Jan 23, 2024
9d0a907
cap fix
rauljordan Jan 23, 2024
cd8c924
fee cap
rauljordan Jan 23, 2024
4fccdf3
cap
rauljordan Jan 23, 2024
f238f38
edit
rauljordan Jan 23, 2024
48a0db7
edits
rauljordan Jan 23, 2024
f780106
cap
rauljordan Jan 23, 2024
924c824
edit
rauljordan Jan 23, 2024
161111f
edits
rauljordan Jan 24, 2024
747e591
bold commit
rauljordan Jan 24, 2024
e08eca0
bold commit update
rauljordan Jan 24, 2024
d36b696
no merkleize
rauljordan Jan 24, 2024
d42cb46
edit
rauljordan Jan 26, 2024
68a5625
update bold
rauljordan Jan 26, 2024
6f92b26
update bold commit
rauljordan Jan 27, 2024
d31ff4d
update bold commit
rauljordan Jan 27, 2024
45cdf4e
confirm blocks
rauljordan Jan 28, 2024
d2e357f
edit bold
rauljordan Jan 28, 2024
35c8f6b
more logging
rauljordan Jan 28, 2024
b25e1ad
edit
rauljordan Jan 28, 2024
5a71732
stringify validation entry
rauljordan Jan 30, 2024
10eb81a
fix test build
amsanghi Jan 31, 2024
1a8fa04
bold dep
rauljordan Feb 2, 2024
68e1512
sepolia commit
rauljordan Feb 2, 2024
fba1b65
bold commit
rauljordan Feb 5, 2024
43877dc
edit run
rauljordan Feb 5, 2024
a518143
tidy
rauljordan Feb 5, 2024
fca3fae
update bold
rauljordan Feb 5, 2024
1bed001
rev geth
rauljordan Feb 5, 2024
1d2eb1c
Make sure execution node is alive while waiting for computing hashes
amsanghi Feb 6, 2024
edd3d33
Minor fix
amsanghi Feb 6, 2024
8674940
add logging
rauljordan Feb 6, 2024
8e0f286
loggig
rauljordan Feb 6, 2024
9078eef
bold commit
rauljordan Feb 6, 2024
0f38f2a
edit bold
rauljordan Feb 6, 2024
7b7cd3c
add log
rauljordan Feb 6, 2024
ac9f51d
Merge branch 'sepolia-tooling' into execution_check_alive
rauljordan Feb 7, 2024
8a760ff
Merge pull request #2130 from OffchainLabs/execution_check_alive
rauljordan Feb 7, 2024
3851014
update bold
rauljordan Feb 7, 2024
efba9e0
Merge branch 'sepolia-tooling' of github.com:OffchainLabs/nitro into …
rauljordan Feb 7, 2024
79707bf
tidy
rauljordan Feb 7, 2024
c04d1b6
fix cross device link
rauljordan Feb 7, 2024
44aa9e0
credits
rauljordan Feb 7, 2024
74b96a3
Revert "tidy"
rauljordan Feb 7, 2024
174350c
update bold
rauljordan Feb 7, 2024
7e71860
tidy
rauljordan Feb 7, 2024
294113a
update bold
rauljordan Feb 7, 2024
4ba2ece
update bold
rauljordan Feb 9, 2024
dd76958
update main
rauljordan Feb 9, 2024
312347a
set the nil
rauljordan Feb 9, 2024
d9cd4bb
update bold
rauljordan Feb 12, 2024
cc40d05
edit bold
rauljordan Feb 12, 2024
719d8f2
update db
rauljordan Feb 12, 2024
be74245
edit bold
rauljordan Feb 13, 2024
e40fffa
edit nitro
rauljordan Feb 13, 2024
d7024f1
fixup
rauljordan Feb 14, 2024
68f0059
bold sub
rauljordan Feb 15, 2024
c8d5044
moar edits
rauljordan Feb 15, 2024
587c4fc
edits
rauljordan Feb 15, 2024
cbd7e23
bold commit
rauljordan Feb 15, 2024
fd4257e
clear
rauljordan Feb 15, 2024
083b9d8
add claim
rauljordan Feb 15, 2024
6e7c6ce
Fix API getting stuck
amsanghi Feb 20, 2024
bff803a
update bold
rauljordan Feb 23, 2024
9493ba6
stake manager
rauljordan Feb 23, 2024
d8348bf
edits
rauljordan Feb 23, 2024
cd98a3c
edits
rauljordan Feb 23, 2024
36c17b8
edits
rauljordan Feb 23, 2024
aaf9067
log the batch
rauljordan Feb 23, 2024
1f4584f
update
rauljordan Feb 27, 2024
ef7c55f
use bottom up timer
rauljordan Feb 28, 2024
fb307f6
Update NewAssertionChain call based on https://github.com/OffchainLab…
amsanghi Mar 3, 2024
9c13037
update
amsanghi Mar 4, 2024
db6118e
update bold march challenge
rauljordan Mar 5, 2024
8c72c37
fix the data poster stuff
rauljordan Mar 5, 2024
ddfc237
build issues
rauljordan Mar 5, 2024
341f816
bold commit
rauljordan Mar 6, 2024
b558c27
edits
rauljordan Mar 6, 2024
7c9d17c
inherited
rauljordan Mar 6, 2024
c2c91e6
edit bold
rauljordan Mar 6, 2024
42a66cc
bold edit
rauljordan Mar 6, 2024
6853b8e
bold
rauljordan Mar 6, 2024
b22fb74
bump
rauljordan Mar 6, 2024
174c10e
Merge branch 'master' into sepolia-tooling
amsanghi Mar 7, 2024
6367ef3
Merge branch 'sepolia-tooling-merge' into use_dataposter
amsanghi Mar 7, 2024
2b4d390
Merge pull request #2168 from OffchainLabs/use_dataposter
rauljordan Mar 7, 2024
aa4d500
update bold march 7
rauljordan Mar 7, 2024
acf6013
update bold
rauljordan Mar 7, 2024
5d07318
disable blob reader for now
rauljordan Mar 7, 2024
af9a102
max mempool txs
rauljordan Mar 11, 2024
44706d7
bold commit
rauljordan Mar 11, 2024
627fcc6
builds
rauljordan Mar 11, 2024
d1f96a0
block processor
rauljordan Mar 11, 2024
9d8353e
bring blob reader
rauljordan Mar 11, 2024
decfd1b
use db storage
rauljordan Mar 12, 2024
10995ad
edit
rauljordan Mar 12, 2024
c99b4a1
update config
amsanghi Mar 12, 2024
29e97d5
weight
rauljordan Mar 12, 2024
9cc1379
edit
rauljordan Mar 12, 2024
09ae992
log
rauljordan Mar 12, 2024
b86b9f0
edit
rauljordan Mar 12, 2024
d065607
poster
rauljordan Mar 12, 2024
8f0416a
noop
rauljordan Mar 12, 2024
cffa3ec
Use single lock while getting nonce and posting transaction
amsanghi Mar 13, 2024
cd14e14
Merge pull request #2185 from OffchainLabs/use_single_lock
rauljordan Mar 13, 2024
845bdf2
update bold
rauljordan Mar 13, 2024
baa1635
Merge branch 'sepolia-tooling-merge' of github.com:OffchainLabs/nitro…
rauljordan Mar 13, 2024
6415d8f
edit
rauljordan Mar 13, 2024
5c03524
edit
rauljordan Mar 13, 2024
afcdc25
edit
rauljordan Mar 13, 2024
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
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
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
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ COPY ./contracts/package.json ./contracts/yarn.lock ./contracts/
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 @@ -220,6 +221,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 Expand Up @@ -310,6 +312,7 @@ USER root
RUN rm -f /home/user/target/machines/latest
COPY --from=prover-export /bin/jit /usr/local/bin/
COPY --from=node-builder /workspace/target/bin/deploy /usr/local/bin/
COPY --from=node-builder /workspace/target/bin/bold-deploy /usr/local/bin/
COPY --from=node-builder /workspace/target/bin/seq-coordinator-invalidate /usr/local/bin/
COPY --from=module-root-calc /workspace/target/machines/latest/machine.wavm.br /home/user/target/machines/latest/
COPY --from=module-root-calc /workspace/target/machines/latest/until-host-io-state.bin /home/user/target/machines/latest/
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ push: lint test-go .make/fmt
all: build build-replay-env test-gen-proofs
@touch .make/all

build: $(patsubst %,$(output_root)/bin/%, nitro deploy relay daserver datool seq-coordinator-invalidate nitro-val seq-coordinator-manager)
build: $(patsubst %,$(output_root)/bin/%, nitro deploy bold-deploy relay daserver datool seq-coordinator-invalidate nitro-val seq-coordinator-manager)
@printf $(done)

build-node-deps: $(go_source) build-prover-header build-prover-lib build-jit .make/solgen .make/cbrotli-lib
Expand Down Expand Up @@ -248,6 +248,9 @@ $(output_root)/bin/nitro: $(DEP_PREDICATE) build-node-deps
$(output_root)/bin/deploy: $(DEP_PREDICATE) build-node-deps
go build $(GOLANG_PARAMS) -o $@ "$(CURDIR)/cmd/deploy"

$(output_root)/bin/bold-deploy: $(DEP_PREDICATE) build-node-deps
go build $(GOLANG_PARAMS) -o $@ "$(CURDIR)/cmd/bold-deploy"

$(output_root)/bin/relay: $(DEP_PREDICATE) build-node-deps
go build $(GOLANG_PARAMS) -o $@ "$(CURDIR)/cmd/relay"

Expand Down
12 changes: 9 additions & 3 deletions arbitrator/prover/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,17 @@ unsafe fn arbitrator_load_machine_impl(
}

#[no_mangle]
#[cfg(feature = "native")]
pub unsafe extern "C" fn arbitrator_load_wavm_binary(binary_path: *const c_char) -> *mut Machine {
pub unsafe extern "C" fn arbitrator_load_wavm_binary(
binary_path: *const c_char,
always_merkleize: u8,
) -> *mut Machine {
let binary_path = cstr_to_string(binary_path);
let binary_path = Path::new(&binary_path);
match Machine::new_from_wavm(binary_path) {
let mut merkleize = false;
if always_merkleize == 1 {
merkleize = true;
}
match Machine::new_from_wavm(binary_path, merkleize) {
Ok(mach) => Box::into_raw(Box::new(mach)),
Err(err) => {
eprintln!("Error loading binary: {err}");
Expand Down
14 changes: 12 additions & 2 deletions arbitrator/prover/src/machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1551,7 +1551,7 @@ impl Machine {
Ok(mach)
}

pub fn new_from_wavm(wavm_binary: &Path) -> Result<Machine> {
pub fn new_from_wavm(wavm_binary: &Path, always_merkleize: bool) -> Result<Machine> {
let mut modules: Vec<Module> = {
let compressed = std::fs::read(wavm_binary)?;
let Ok(modules) = brotli::decompress(&compressed, Dictionary::Empty) else {
Expand All @@ -1577,6 +1577,16 @@ impl Machine {
MerkleType::Function,
module.funcs.iter().map(Function::hash).collect(),
));
if always_merkleize {
module.memory.cache_merkle_tree();
}
}
let mut modules_merkle = None;
if always_merkleize {
modules_merkle = Some(Merkle::new(
MerkleType::Module,
modules.iter().map(Module::hash).collect(),
));
}
let mut mach = Machine {
status: MachineStatus::Running,
Expand All @@ -1586,7 +1596,7 @@ impl Machine {
internal_stack: Vec::new(),
frame_stacks: vec![Vec::new()],
modules,
modules_merkle: None,
modules_merkle,
global_state: Default::default(),
pc: ProgramCounter::default(),
stdio_output: Vec::new(),
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 @@ -680,13 +680,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) {
p.mutex.Lock()
defer p.mutex.Unlock()
nonce, _, _, _, err := p.getNextNonceAndMaybeMeta(ctx, 1)
if err != nil {
return nil, err
}
return p.postTransaction(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.postTransaction(ctx, dataCreatedAt, nonce, meta, to, calldata, gasLimit, value, kzgBlobs, accessList)
}

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) {

var weight uint64 = 1
if len(kzgBlobs) > 0 {
Expand Down
2 changes: 1 addition & 1 deletion arbnode/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,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.NewStaker(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 1239b8
Loading
Loading