Commit a61e4674 authored by Rahman's avatar Rahman Committed by GitHub

Cannon: optimize the example (#11302)

* optimize the example

Use better-suited examples and make sure to add the required flag L2outputroot.

* fix path

* update

* replace network

* update comment
parent 6e58dc4c
...@@ -37,24 +37,25 @@ make cannon ...@@ -37,24 +37,25 @@ make cannon
# it runs as sub-process to provide the pre-image data. # it runs as sub-process to provide the pre-image data.
# #
# Note: # Note:
# - The L2 RPC is an archive L2 node on OP goerli. # - The L2 RPC is an archive L2 node on OP MAINNET.
# - The L1 RPC is a non-archive RPC, also change `--l1.rpckind` to reflect the correct L1 RPC type. # - The L1 RPC is a non-archive RPC, also change `--l1.rpckind` to reflect the correct L1 RPC type.
./bin/cannon run \ ./bin/cannon run \
--pprof.cpu \ --pprof.cpu \
--info-at '%10000000' \ --info-at '%10000000' \
--proof-at never \ --proof-at '=<TRACE_INDEX>' \
--stop-at '=<STOP_INDEX>' \
--snapshot-at '%1000000000' \
--input ./state.json \ --input ./state.json \
-- \ -- \
../op-program/bin/op-program \ ../op-program/bin/op-program \
--network goerli \ --network op-mainnet \
--l1.trustrpc \ --l1 <L1_URL> \
--l1.rpckind debug_geth \ --l2 <L2_URL> \
--l1 http://127.0.0.1:8645 \ --l1.head <L1_HEAD> \
--l2 http://127.0.0.1:8745 \ --l2.claim <L2_CLAIM> \
--l1.head 0x204f815790ca3bb43526ad60ebcc64784ec809bdc3550e82b54a0172f981efab \ --l2.head <L2_HEAD> \
--l2.head 0xedc79de4d616a9100fdd42192224580daee81ea3d6303de8089d48a6c1bf4816 \ --l2.blocknumber <L2_BLOCK_NUMBER> \
--l2.claim 0x530658ab1b1b3ff4829731fc8d5955f0e6b8410db2cd65b572067ba58df1f2b9 \ --l2.outputroot <L2_OUTPUT_ROOT>
--l2.blocknumber 8813570 \
--datadir /tmp/fpp-database \ --datadir /tmp/fpp-database \
--log.format terminal \ --log.format terminal \
--server --server
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment