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

Haoyu/scroll-v5.7.11_broadcast #1074

Closed
wants to merge 485 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
485 commits
Select commit Hold shift + click to select a range
d02a410
refactor: simplify ccc revert to snapshot (#480)
iczc Aug 24, 2023
e93930d
feat: use --gcmode=archive and --cache.noprefetch=true by default (#482)
Thegaram Aug 24, 2023
eb79758
feat(sdk): support compressed response (#469)
mask-pp Aug 24, 2023
b0657a7
fix: disable pruning and prefetch if not flags are provided (#483)
Thegaram Aug 24, 2023
637cb37
fix: update libzkp to use scroll-prover `v0.7.5` (#484)
silathdiir Aug 25, 2023
7de261b
feat: store skipped transactions in local db (#467)
Thegaram Aug 25, 2023
d650299
feat(miner): consider l1msg in txCount (#486)
0xmountaintop Aug 26, 2023
f883dcd
docs(ccc): add more logs for skipping msg (#490)
0xmountaintop Aug 29, 2023
ea3a3c9
fix(miner): fix repeatedly processing dropped txs in a new block (#491)
0xmountaintop Aug 30, 2023
63cbb77
chore(ccc): v0.7.6: fix: if rws reaches limit, stop early (#495)
lispc Aug 30, 2023
ef328db
fix(modexp): disallow len of 0x80000000000000000000000000000000000000…
lispc Aug 31, 2023
24d8567
feat(metrics): add skipped txs metrics for miner (#494)
Lawliet-Chan Aug 31, 2023
d45613f
fix(trace): more consistent invalid opcode trace (#487)
lispc Aug 31, 2023
c60fa3a
fix(trace): fix memory trace size (#497)
lispc Sep 1, 2023
2d9d48d
fix(trace): record account proof for ErrContractAddressCollision (#488)
lispc Sep 4, 2023
0b6c3be
feat(api/rawdb): allow storing traces for skipped txs (#500)
0xmountaintop Sep 5, 2023
293deff
refactor(ccc): throw error instead of panic for recognized errors (#499)
Lawliet-Chan Sep 6, 2023
fde2c3b
fix: libzkp `v0.8.1` (#502)
silathdiir Sep 7, 2023
c75ebdb
fix(libzkp): upgrade to `v0.8.2` (#504)
silathdiir Sep 7, 2023
dade96d
fix(rawdb, api): fix `rawdb.writeSkippedTransaction` & `api.GetSkippe…
0xmountaintop Sep 7, 2023
7d79f27
fix (libzkp): check tx num when CCC ErrUnknown error occurred (#505)
silathdiir Sep 8, 2023
1d824f4
fix(ccc): fix CCC build errors (#506)
Thegaram Sep 8, 2023
9c1433b
fix(trace): use correct roots in trace of block with one transaction …
Thegaram Sep 11, 2023
734021f
p2p: limit ping requests from a single peer (#510)
iczc Sep 12, 2023
417dd02
fix(sdk): accept blocks where coinbase is null (e.g. pending block) (…
mask-pp Sep 13, 2023
530830a
fix(worker): check gas limit before running ccc (#511)
Thegaram Sep 13, 2023
2b22bf9
fix(libzkp): upgrade to use prover `v0.9.0` (#513)
silathdiir Sep 14, 2023
5b787be
fix(libzkp): upgrade to use prover `v0.9.1` (#517)
silathdiir Sep 17, 2023
93a9497
refactor(worker): order L1 messages by queue index (#512)
Thegaram Sep 18, 2023
fa0be69
fix(libzkp): upgrade libzkp to `v0.9.2` (fix ccc panic CodeNotFound) …
silathdiir Sep 19, 2023
a51434d
feat: use light_mode = false for block ccc (#519)
lispc Sep 27, 2023
abcf48f
fix(ccc): revert light mode (#524)
Thegaram Sep 27, 2023
fe8232a
fix(worker): short-circuit l1 message iteration (#525)
Thegaram Sep 29, 2023
751dbda
feat: add metrics in L1 message iterator (#527)
Thegaram Oct 1, 2023
de5aebd
feat: configure max block range for eth_getLogs (#521)
NazariiDenha Oct 2, 2023
736cf7b
Revert "feat: configure max block range for eth_getLogs (#521)" (#528)
Thegaram Oct 3, 2023
7cebee8
fix(libzkp): upgrade libzkp to `v0.9.4` and add ccc `SetLightMode` (#…
silathdiir Oct 3, 2023
df41822
fix: re-enable CCC light mode (#530)
Thegaram Oct 4, 2023
d430133
fix(libzkp): upgrade libzkp to `v0.9.5` (#531)
silathdiir Oct 4, 2023
fea7d94
Fix/config fix small bug and set default maxBlockRange to -1 to not u…
NazariiDenha Oct 4, 2023
68697b0
fix: use non-overlapping DB prefix for L1 messages (#532)
Thegaram Oct 4, 2023
b3d0f16
feat: add new configuration (#526)
Thegaram Oct 8, 2023
cfd9de0
feat: update network configuration (#533)
Thegaram Oct 8, 2023
9a0a87f
fix(libzkp): upgrade to use prover `v0.9.7` (#535)
silathdiir Oct 13, 2023
fcb3e17
refactor(tracing): refactor `wrappedProof` (#536)
0xmountaintop Oct 17, 2023
adde9ce
fix (libzkp): free Rust CString by `from_raw` (potential memory leak)…
silathdiir Oct 25, 2023
bbf4204
fix: eth_estimateGas error in zero balance address (#537)
colinlyguo Oct 25, 2023
4412122
feat(rollup): sync finalized batches from L1 (#515)
colinlyguo Oct 27, 2023
a8a9dc8
perf(miner): reduce rawdb calls for getting `StartL1QueueIndex` when …
GDdark Nov 8, 2023
1bf2628
feat(rpc): add scroll_* rollup APIs (#548)
colinlyguo Nov 9, 2023
65a3a7f
Add metrics around block commit, block traces, and CCC (#552)
vyzo Nov 9, 2023
d537451
refactor(evm): Remove duplicate defined variables (#559)
GDdark Nov 12, 2023
3f9b23d
fix(worker): prioritize overflow tx as first tx in next block (#563)
Thegaram Nov 14, 2023
f4b247d
feat: add `scroll_getTxBlockTraceOnTopOfBlock ` API (#558)
0xmountaintop Nov 20, 2023
9f143b4
feat (`libzkp-v0.9.8`): recordStorageDetail even when LogConfig.Disab…
lispc Nov 22, 2023
38a3a9c
fix(tracing): fix `getTxResult` returned error format (#561)
0xmountaintop Nov 30, 2023
b235afb
feat(rollup): add fallback if TransactionByHash fails in getting comm…
colinlyguo Dec 18, 2023
833f904
feat: improve balance check (#607)
0xmountaintop Dec 25, 2023
640b391
feat: remove instead of pop insufficient-funds tx (#608)
0xmountaintop Dec 25, 2023
5b7079b
fix(tx-pool): consider L1 data fee in validateTx (#609)
colinlyguo Dec 26, 2023
219b84e
fix(txpool): revert duplicated l1 data fee check (#612)
colinlyguo Jan 8, 2024
fc06826
fix(receipt): L1 message type tx RLP decoding (#616)
colinlyguo Jan 15, 2024
88349c6
feat: add mux tracer for native call tracer and native prestate trace…
0xmountaintop Jan 18, 2024
1f002f3
docs: update README.md (#593)
crzrh Jan 22, 2024
d86b42c
fix(ethclient): support new cancun fields in header (#623)
colinlyguo Jan 31, 2024
ae7cbae
feat(transactions): support blob tx only in encoding/decoding (#626)
colinlyguo Feb 1, 2024
7e3a7ae
ci: fix goimports lint in CI (#628)
Thegaram Feb 9, 2024
ee381b2
feat: setup configuration for upcoming hard fork and re-enable sha256…
NazariiDenha Feb 9, 2024
483949b
fix(rollup sync service): remove syscall.Kill (#636)
colinlyguo Feb 21, 2024
989639a
ci: fix blocktraces submodule url (#632)
qezz Feb 26, 2024
bfa7abc
feat: add metric to evm call (#646)
georgehao Feb 28, 2024
06a21f3
feat: add transactions len metrics of block processer (#650)
georgehao Mar 4, 2024
a807a41
fix(txJSON): L1 message type MarshalJSON (#630)
colinlyguo Mar 5, 2024
dab4354
feat(ethclient): export `GetTxBlockTraceOnTopOfBlock` & `GetNumSkippe…
0xmountaintop Mar 11, 2024
ccec84c
feat: re-enable EIP-1559 in Banach hard fork (#634)
Thegaram Mar 11, 2024
4553f5f
feat(ethclient & gethclient): support blob transaction (#661)
colinlyguo Mar 14, 2024
df83a62
chore(docker): make sure the libzkp directory is clean (#664)
omerfirmak Mar 20, 2024
e9246f1
chore(libzkp): upgrade to v0.9.10, optimize ccc for follower&chunking…
lispc Mar 22, 2024
411889e
fix: ensure L1 messages are stored in db consistently (#679)
Thegaram Mar 26, 2024
0f0cd99
feat: update upcoming fork names (#680)
Thegaram Mar 26, 2024
3cf590b
fix(zktrie): fix `NewZktrieDatabase` (#638)
0xmountaintop Mar 27, 2024
61e8de9
fix(sync-service): only add queue index when message index is not zer…
colinlyguo Mar 27, 2024
d1e4b59
fix: Check L1DataFee in txpool promoteExecutables and demoteUnexecuta…
vyzo Mar 27, 2024
5faeeaa
feat: add metrics to block validation (#677)
Thegaram Mar 27, 2024
054bbd2
fix(tracing): disable storage for block_traces (#684)
0xmountaintop Mar 28, 2024
06f4573
ci: add bump_version bot (#538)
0xmountaintop Mar 31, 2024
55b03ff
feat(rollup-verifier): support codecv1 (#678)
colinlyguo Apr 4, 2024
0bccb7b
fix(state): fix `iterativeDump.OnAccount` (#649)
0xmountaintop Apr 5, 2024
4c2b567
fix(txpool): rollback false optimization (#694)
georgehao Apr 8, 2024
d0ff839
chore(libzkp): upgrade to v0.9.13, support next hard fork transition …
lispc Apr 8, 2024
85447ec
feat(sepolia): enable Bernoulli hard fork (#688)
Thegaram Apr 8, 2024
5115f13
fix(rollup-verifier): hardcode genesis codec version as codecv0 and s…
colinlyguo Apr 16, 2024
678a9fc
feat: add more state_transition, worker, and tracing metrics (#700)
georgehao Apr 16, 2024
347a0c4
CI: build image which supports arm64 platform (#702)
sbaizet-ledger Apr 16, 2024
d1055b1
Ci add support for arm64 platform (#703)
sbaizet-ledger Apr 17, 2024
bf22663
fix(ci): fix version bot (#705)
0xmountaintop Apr 17, 2024
d81a330
feat(worker): add a commit tx failed metric (#704)
colinlyguo Apr 17, 2024
62926d4
feat(worker): seal block early if we're over target block time (#706)
Thegaram Apr 18, 2024
0252f85
feat: add block time metric (#707)
Thegaram Apr 18, 2024
246955a
feat: enable Bernoulli upgrade on Scroll mainnet (#710)
Thegaram Apr 22, 2024
90221d6
chore(dep): upgrade go kzg 4844 (#718)
z2trillion Apr 24, 2024
79c3560
feat(zktrie): upgrade to 0.8.2 (#715)
omerfirmak Apr 24, 2024
629f14e
perf(poseidon): eliminate heap allocations in poseidon (#712)
omerfirmak Apr 24, 2024
6220695
ci - remove arm64 from supported platform (#719)
sbaizet-ledger Apr 24, 2024
ecca106
(feat) core/vm: implement EIP-5656, mcopy opcode (#697)
NazariiDenha Apr 24, 2024
005db03
(feat)core/vm: Add Upgrade #4 fork configuration (#698)
NazariiDenha Apr 24, 2024
a860446
fix(api-backend): disable finalized tag when rollup verify is disable…
colinlyguo Apr 26, 2024
3592139
(feat)all: add EIP-1153 - transient storage (#721)
NazariiDenha Apr 28, 2024
c5836a4
docs(miner): rename `circuitCapacityReached` to `circuitCapacityOrBlo…
0xmountaintop Apr 28, 2024
6d80f28
feat(libzkp): ccc v0.10.2 (enable sha256, remove StructLog.stack) (#691)
colinlyguo Apr 29, 2024
733dd01
feat(zktrie): bump to v0.8.4 (#734)
omerfirmak Apr 29, 2024
c3b7678
fix: temporarily disable string encoding for new opcodes (#737)
Thegaram May 2, 2024
da3be71
metrics: NilTimer should still run the function to be timed (#739)
omerfirmak May 3, 2024
037781a
feat(worker): disable enforceTips when fetching pending transactions …
Thegaram May 6, 2024
070ec68
chore(libzkp): upgrade to v0.10.4 (#743)
lispc May 8, 2024
5d0d197
feat(ccc): reuse a buffer for json encoding (#744)
omerfirmak May 10, 2024
abca104
chore(libzkp): upgrade to v0.10.5, speed up by avoiding some unnecess…
lispc May 11, 2024
12871c7
feat(worker): try to limit the number of txns miner has to deal with …
omerfirmak May 13, 2024
6038ac8
fix(zktrie): copy trie properly for concurrent access (#747)
omerfirmak May 13, 2024
caec0c3
fix(worker): set default account fetch limit (#756)
Thegaram May 17, 2024
c7990a3
feat(worker): pipeline block building (#735)
omerfirmak May 21, 2024
dd96cec
feat: implement relaxed period in clique (#763)
omerfirmak May 22, 2024
fe55edd
consensus/clique: fix race condition (#24957) (#766)
omerfirmak May 23, 2024
e5b4f3e
docs(zktrie): remove an outdated comment (#765)
colinlyguo May 23, 2024
51bb998
fix: prioritized tx not being cleared after skipping it (#764)
omerfirmak May 24, 2024
9b4a779
feat: sanity check locally built blocks via local consensus engine (#…
omerfirmak May 24, 2024
dd7f747
feature: keep track of and export total time observed by a timer (#772)
omerfirmak May 27, 2024
b9919a5
fix: make consensus engine wait for a bit before giving up on worker …
omerfirmak May 27, 2024
89ff451
fix: make sure building of pending blocks don't have any lasting side…
omerfirmak May 28, 2024
9f961dd
feat: reduce the number of samples in lifetimeTimer (#777)
omerfirmak May 28, 2024
bfe8030
feat: update L1 data fee in Curie hard fork (#755)
Thegaram May 28, 2024
760f234
trie: fix two issues in trie iterator (#24539) (#778)
0xmountaintop May 28, 2024
4f9d34b
Add Semgrep CI
semgrep-bot May 28, 2024
d81a538
Add Semgrep CI
semgrep-bot May 28, 2024
34162ef
Add Semgrep CI
semgrep-bot May 28, 2024
e6cc960
fix: properly release pipeline stages (#783)
omerfirmak May 29, 2024
b091e4f
feat(rollup-sync-service): support codecv2 (#726)
colinlyguo May 30, 2024
ab349d6
ci: fix make geth (#786)
colinlyguo May 30, 2024
094a67a
fix: use a named deadline timer in CCC stage (#782)
omerfirmak May 30, 2024
aae829c
feat(ccc): revert libzkp version back to v0.10.5 (#785)
colinlyguo May 30, 2024
a43879b
feat: allow non-ccc pipelines (#781)
omerfirmak May 30, 2024
ca1db84
build: fix Dockerfile of mockccc geth (#787)
colinlyguo May 30, 2024
36d7325
fix: make commit retry logic selective (#788)
omerfirmak May 31, 2024
8c7491a
feat: update gas-oracle contract bytecode (#792)
Thegaram Jun 3, 2024
9ec83a5
fix: use correct encoding for L1 data fee of EIP2718 transactions (#793)
Thegaram Jun 3, 2024
b9d3c72
feat: congestion-aware gas price oracle (#790)
jonastheis Jun 4, 2024
7c74239
fix: mockccc geth Dockerfile (#797)
colinlyguo Jun 5, 2024
e162fbb
feat: turn libscroll_zstd dynamic lib into static (#794)
colinlyguo Jun 5, 2024
60bbfc1
fix(ci): make geth (#801)
colinlyguo Jun 5, 2024
81074f5
feat: implement eth_getBlockReceipts (#796)
Thegaram Jun 5, 2024
6229ef1
refactor(config): refactor some chainConfig (#754)
0xmountaintop Jun 5, 2024
d086022
fix: avoid accidentally sharing a tracer between goroutines (#768)
omerfirmak Jun 5, 2024
c2d7bd8
feat: implement RIP-7212/EIP-7212 (#798)
jonastheis Jun 6, 2024
ccf6321
feat: allow trie prefetch (#795)
omerfirmak Jun 6, 2024
dc57ae2
fix: account for the artificially added delay in commit stage (#806)
omerfirmak Jun 7, 2024
8bd2a16
refactor(ccc): allow go side to construct a rust trace from json (#…
omerfirmak Jun 7, 2024
e2becce
fix: bump zktrie to 0.8.4 (#809)
omerfirmak Jun 7, 2024
16cbc9a
Chore: upgrade libzkp v0.10.6 (#816)
lispc Jun 11, 2024
e34a8cf
feat(prometheus): collect timer.Total() (#817)
omerfirmak Jun 11, 2024
77f358f
feat: schedule Curie hard fork on Scroll and Scroll Sepolia (#808)
Thegaram Jun 11, 2024
42fb4fb
ci: use go go-1.21 during docker build (#818)
Thegaram Jun 11, 2024
84cf1b5
feat: introduce encode stage (#814)
omerfirmak Jun 12, 2024
0b6cdbd
Revert "feat: introduce encode stage (#814)"
Thegaram Jun 12, 2024
69aae68
feat: delay Curie fork on mainnet by 1 day (#821)
Thegaram Jun 12, 2024
1ebde6d
feat: introduce encode stage (#822)
omerfirmak Jun 13, 2024
fc9db9f
fix(txpool): compare gas tip cap instead of effective gas tip cap (#825)
Thegaram Jun 13, 2024
3161380
refactor: remove unused storage traces (#819)
omerfirmak Jun 14, 2024
94c6fc0
refactor: cleanup scroll_worker.go (#823)
omerfirmak Jun 14, 2024
f2efa44
ci: Support arm64 dedicated workflow (#840)
sbaizet-ledger Jun 20, 2024
4e3bf2f
fix(traces): deletion proof apply wrong storage value from structLogg…
noel2004 Jun 20, 2024
c003520
fix: update l1 db entry for curie transition block (#835)
Thegaram Jun 20, 2024
aafca83
fix: free rust traces that never make it to CCC (#844)
omerfirmak Jun 21, 2024
f40dca0
fix: do not attempt to free nil rust trace (#845)
omerfirmak Jun 21, 2024
517e5b4
Support arm64 dedicated workflow (#841)
sbaizet-ledger Jun 21, 2024
7da0bd5
feat: delay Scroll mainnet Curie block by 6 days (#850)
Thegaram Jun 24, 2024
50a6bc6
feat: make descartes a timestamp based fork (#852)
omerfirmak Jun 26, 2024
574ebf8
fix: add missing CA certificates to Dockerfile.mockccc (#861)
jonastheis Jun 26, 2024
418bc6f
feat: rename next upgrade to Darwin (#863)
Thegaram Jun 26, 2024
ef980a2
feat(rollup_sync_service): handle multiple batches in `FinalizeBatch`…
amoylan2 Jul 1, 2024
b8f086c
feat: update to ccc v0.11.4 (#872)
Thegaram Jul 3, 2024
4e8468f
fix(CI): remove libzktrie.so (#878)
colinlyguo Jul 3, 2024
e30e1f1
feat: Configure l2geth Docker pipeline to push latest tag (#831)
NazariiDenha Jul 3, 2024
dcd0004
fix(p2p): re-enable ENRUpdater (#869)
0xmountaintop Jul 5, 2024
a40ef3f
fix(signer): update `LatestSigner` logic (#880)
0xmountaintop Jul 5, 2024
9aee472
fix: scroll greeting message (#885)
omerfirmak Jul 6, 2024
15019ef
feat: add codecv3 for darwin batches (#866)
amoylan2 Jul 9, 2024
f56dbb7
feat: update L2 base fee formula (#891)
Thegaram Jul 9, 2024
ae45e12
fix(GPO): min suggested tip cap if there's congestion to avoid filter…
jonastheis Jul 10, 2024
8c7a3ae
feat(txpool): StatsWithMinBaseFee (#884)
jonastheis Jul 10, 2024
c3371e2
fix: return early as expected when engine.Prepare fails (#886)
omerfirmak Jul 11, 2024
55f70cc
fix(tracing): fix error handling in `fillBlockTrace` (#890)
0xmountaintop Jul 11, 2024
0b5146b
feat(txpool): use GasFeeCapIntCmp to check min fee (#901)
Thegaram Jul 12, 2024
df08f60
fix(rollup-verifier): decode commitBatchWithBlobProof calldata (#896)
colinlyguo Jul 12, 2024
0cecc19
refactor(trace): clean outdated fields (#842)
lispc Jul 15, 2024
0360eba
fix(l2geth-verifier): only check last batch of the bundle (#904)
colinlyguo Jul 17, 2024
de0385e
fix(verifier): nil panic due to batch write (#911)
colinlyguo Jul 19, 2024
9ee6976
fix(miner,rpc): fix `updateSnapshot` (#916)
0xmountaintop Jul 23, 2024
f2af32d
fix: log Rust trace parsing error (#918)
Thegaram Jul 23, 2024
df3713e
feat(libzkp):unbounded depth serde json (#920)
georgehao Jul 24, 2024
e3bfb5f
fix: treat JSON errors as CCC error (#922)
omerfirmak Jul 25, 2024
9abdd5b
feat: defer txpool reorg until worker fetches txns for the next block…
omerfirmak Jul 26, 2024
51c7eee
feat(clique): allow shadowforking a clique network (#828)
omerfirmak Aug 1, 2024
b84f4ed
refactor: reduce number of heap allocations in tracing (#952)
omerfirmak Aug 1, 2024
ee0410e
feat: update L2 base fee formula (#951)
0xmountaintop Aug 2, 2024
2ba5ea3
Revert "refactor: reduce number of heap allocations in tracing (#952)…
omerfirmak Aug 2, 2024
dfd4039
feat: schedule Darwin hard fork (#963)
Thegaram Aug 5, 2024
3f5fb27
fix: enable correct string encoding of new opcodes (#815)
lispc Aug 8, 2024
2411ae0
refactor: rename CCC package for less repetition (#967)
omerfirmak Aug 9, 2024
4d83d89
Fix typo README (#979)
oksanaphmn Aug 12, 2024
4464f48
refactor: remove unused unconfirmed.go (#972)
omerfirmak Aug 12, 2024
096b98a
feat: allow calculating diffs between two row consumptions (#980)
omerfirmak Aug 12, 2024
4b85bbc
calculate tx the lifecycle duration (#839)
georgehao Aug 13, 2024
2ccacff
feat(metrics): calculate the real pending tx (#983)
georgehao Aug 20, 2024
0ed16b0
feat: add darwinv2 in genesis config (#993)
colinlyguo Aug 21, 2024
9de4980
feat(rollup-verifier): codecv4 (#991)
colinlyguo Aug 23, 2024
972fe8a
feat: backport flatCallTracer (#895)
draganm Aug 23, 2024
233a6ad
feat: async ccc checker (#996)
omerfirmak Aug 23, 2024
03f3b2b
fix(rollup-verifier): delete committed batch meta when reverting a ba…
colinlyguo Aug 26, 2024
ff23c52
feat: schedule DarwinV2 (#1002)
Thegaram Aug 26, 2024
c252ee1
feat(tx-pool): fast reject known skipped txs (#1004)
colinlyguo Aug 26, 2024
77a5659
feat: add more logs to investigate tx broadcast issue (#1005)
0xmountaintop Aug 27, 2024
118a80b
feat: add more metrics to investigate tx broadcast issue (#1007)
0xmountaintop Aug 27, 2024
89e9a21
fix(metrics): fix tx broadcast investigation metrics (#1010)
0xmountaintop Aug 28, 2024
2865e13
fix(metrics): fix tx broadcast investigation metrics again (#1012)
0xmountaintop Aug 28, 2024
e9259b7
feat: implement and integrate counter-based CCC (#982)
omerfirmak Sep 4, 2024
8f8ef30
feat(txpool): add more logs to `runReorg` (#1019)
0xmountaintop Sep 4, 2024
0573f6e
fix: disable headCCCCheck for follower nodes (#1021)
omerfirmak Sep 5, 2024
e0203bf
feat: double check ancestor RowConsumption before committing (#1022)
omerfirmak Sep 5, 2024
bdb1ffb
feat: add miner idle metric (#1023)
omerfirmak Sep 5, 2024
bf5cca7
fix: nil-check curRc (#1024)
omerfirmak Sep 5, 2024
a4b738f
fix: skip ccc.ErrUnknown txns immediately (#1027)
omerfirmak Sep 6, 2024
665f6c3
feat(rpc): add getTxByTxTrace api, used for ccc testing & debugging (…
lispc Sep 6, 2024
590e104
fix: increase keccak usage safety buffer (#1028)
omerfirmak Sep 9, 2024
e426d4b
fix: ignore RC check if force committing (#1029)
omerfirmak Sep 9, 2024
51082b2
fix: properly handle wrapped retryable errors (#1030)
omerfirmak Sep 9, 2024
6cdcff6
fix: reuse timestamp for blocks failing CCC (#1031)
omerfirmak Sep 10, 2024
7f79c7f
refactor: eliminate double re-execution in AsyncChecker (#1036)
omerfirmak Sep 16, 2024
521a074
feat: allow removing txns from pool via CLI/RPC (#1041)
omerfirmak Sep 16, 2024
1d02d04
feat(scroll-worker): add nil consumption block metrics (#1033)
colinlyguo Sep 17, 2024
89639dd
feat: allow triggering one-off CCC on a block (#1043)
omerfirmak Sep 17, 2024
86965f8
feat(tx-pool): fast reject transactions that cannot fit into a block …
colinlyguo Sep 17, 2024
f044582
fix: remove a duplicated cmd in Dockerfile.mockccc (#1048)
colinlyguo Sep 20, 2024
d599666
fix: make reorg mode explicit (#1049)
omerfirmak Sep 20, 2024
c0094ee
fix: avoid committing empty blocks after the deadline (#1051)
omerfirmak Sep 20, 2024
7ff93ca
fix: initialize pending block with an empty block (#1052)
omerfirmak Sep 20, 2024
cf1ca84
feat: allow changing L1 synced height via admin RPC/CLI (#1044)
colinlyguo Sep 24, 2024
2ed7456
feat: update L2 base fee formula (#1053)
Thegaram Oct 1, 2024
f00dc06
fix: account for tx subcircuit confidence factor (#1065)
omerfirmak Oct 11, 2024
aa3af46
fix: TestValidateTxBlockSize (#1067)
omerfirmak Oct 11, 2024
c88cc48
add debugging tool to l2geth images (#1066)
sbaizet-ledger Oct 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Auto detect text files and perform LF normalization
* text=auto
*.sol linguist-language=Solidity
*.go text eol=lf
34 changes: 34 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
## 1. Purpose or design rationale of this PR

...


## 2. PR title

Your PR title must follow [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/#summary) (as we are doing squash merge for each PR), so it must start with one of the following [types](https://github.com/angular/angular/blob/22b96b9/CONTRIBUTING.md#type):

- [ ] build: Changes that affect the build system or external dependencies (example scopes: yarn, eslint, typescript)
- [ ] ci: Changes to our CI configuration files and scripts (example scopes: vercel, github, cypress)
- [ ] docs: Documentation-only changes
- [ ] feat: A new feature
- [ ] fix: A bug fix
- [ ] perf: A code change that improves performance
- [ ] refactor: A code change that doesn't fix a bug, or add a feature, or improves performance
- [ ] style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
- [ ] test: Adding missing tests or correcting existing tests


## 3. Deployment tag versioning

Has the version in `params/version.go` been updated?

- [ ] This PR doesn't involve a new deployment, git tag, docker image tag, and it doesn't affect traces
- [ ] Yes


## 4. Breaking change label

Does this PR have the `breaking-change` label?

- [ ] This PR is not a breaking change
- [ ] Yes
35 changes: 35 additions & 0 deletions .github/scripts/bump_version_dot_go.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import { URL } from "url";
import { readFileSync, writeFileSync } from "fs";

const versionFilePath = new URL(
"../../params/version.go",
import.meta.url
).pathname;

const versionFileContent = readFileSync(versionFilePath, { encoding: "utf-8" });

const currentVersionPatch = versionFileContent.match(
/VersionPatch = (?<patch>\d+)/
).groups.patch;

try {
parseInt(currentVersionPatch);
} catch (err) {
console.error(new Error("Failed to parse version in version.go file"));
throw err;
}

// prettier-ignore
const newVersionPatch = `${parseInt(currentVersionPatch) + 1}`;

console.log(
`Bump version from ${currentVersionPatch} to ${newVersionPatch}`
);

writeFileSync(
versionFilePath,
versionFileContent.replace(
`VersionPatch = ${currentVersionPatch}`,
`VersionPatch = ${newVersionPatch}`
)
);
63 changes: 63 additions & 0 deletions .github/workflows/bump_version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Bump version

on:
pull_request:
branches: [ develop ]
types:
- opened
- reopened
- synchronize
- ready_for_review
- labeled

jobs:
try-to-bump:
if: contains(github.event.pull_request.labels.*.name, 'bump-version')
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: check diff
id: check_diff
run: |
set -euo pipefail

# fetch develop branch so that we can diff against later
git fetch origin develop

echo 'checking verion changes in diff...'

# check if version changed in version.go
# note: the grep will fail if use \d instead of [0-9]
git diff HEAD..origin/develop --text --no-ext-diff --unified=0 --no-prefix params/version.go | grep -E '^\+\s*VersionPatch' && true

exit_code=$?

# auto bump if version is not bumped manually
echo '> require auto version bump?'

if [ $exit_code -eq 0 ]; then
echo '> no, already bumped'
echo "result=no-bump" >> "$GITHUB_OUTPUT"
else
echo '> yes'
echo "result=bump" >> "$GITHUB_OUTPUT"
fi
- name: Install Node.js 16
if: steps.check_diff.outputs.result == 'bump'
uses: actions/setup-node@v3
with:
node-version: 16
- name: bump version in params/version.go
if: steps.check_diff.outputs.result == 'bump'
run: node .github/scripts/bump_version_dot_go.mjs

# Commits made by this Action do not trigger new Workflow runs
- uses: stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a
if: steps.check_diff.outputs.result == 'bump'
with:
skip_fetch: true # already did fetch in check diff
file_pattern: "params/version.go"
commit_message: "chore: auto version bump [bot]"
41 changes: 41 additions & 0 deletions .github/workflows/docker-arm64.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Docker-arm64

on:
workflow_dispatch:
inputs:
tag:
description: "tag of this image (suffix -arm64 is added automatically)"
required: true
type: string

jobs:
build-and-push-arm64-image:
runs-on: ubuntu-latest
strategy:
matrix:
arch:
- aarch64

steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up QEMU
run: |
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker buildx create --name multiarch --driver docker-container --use
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build docker image
uses: docker/build-push-action@v2
with:
platforms: linux/arm64
context: .
file: Dockerfile
push: true
tags: scrolltech/l2geth:${{inputs.tag}}-arm64
45 changes: 45 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Docker

on:
push:
tags:
- '*'
release:
types: [published]

jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Extract docker metadata
id: meta
uses: docker/metadata-action@v3
with:
images: scrolltech/l2geth
tags: |
type=ref,event=tag,enable=${{ github.event_name == 'push' }}
type=raw,value=latest,enable=${{ github.event_name == 'release' }}
flavor: |
latest=false
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build docker image
uses: docker/build-push-action@v2
with:
context: .
file: Dockerfile
# push: ${{ startsWith(github.ref, 'refs/tags/') }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
# cache-from: type=gha,scope=${{ github.workflow }}
# cache-to: type=gha,scope=${{ github.workflow }}
114 changes: 114 additions & 0 deletions .github/workflows/l2geth_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
on:
push:
branches: # we keep this to avoid triggering `push` & `pull_request` every time we update a PR
- main
- staging
- develop
- alpha
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
name: CI
jobs:
build-mock-ccc-geth: # build geth with mock circuit capacity checker
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.21.x
- name: Checkout code
uses: actions/checkout@v2
- name: Build
run: |
make nccc_geth
build-geth: # build geth with circuit capacity checker
if: github.event_name == 'push' # will only be triggered when pushing to main & staging & develop & alpha
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.21.x
- name: Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2022-12-10
override: true
components: rustfmt, clippy
- name: Checkout code
uses: actions/checkout@v2
- name: Build
run: |
make libzkp
sudo cp ./rollup/ccc/libzkp/libzkp.so /usr/local/lib/
make geth
check:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.21.x
- name: Checkout code
uses: actions/checkout@v2
- name: Lint
run: |
rm -rf $HOME/.cache/golangci-lint
make lint
goimports-lint:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.18.x
- name: Install goimports
run: go install golang.org/x/tools/cmd/goimports@v0.24.0
- name: Checkout code
uses: actions/checkout@v2
- run: goimports -local github.com/scroll-tech/go-ethereum/ -w .
# If there are any diffs from goimports, fail.
- name: Verify no changes from goimports
run: |
if [ -n "$(git status --porcelain)" ]; then
exit 1
fi
go-mod-tidy-lint:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.21.x
- name: Checkout code
uses: actions/checkout@v2
- run: go mod tidy
# If there are any diffs from go mod tidy, fail.
- name: Verify no changes from go mod tidy
run: |
if [ -n "$(git status --porcelain)" ]; then
exit 1
fi
test:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.21.x
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: |
make test
- name: Upload coverage report
run: bash <(curl -s https://codecov.io/bash)
24 changes: 24 additions & 0 deletions .github/workflows/semgrep.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
on:
workflow_dispatch: {}
pull_request: {}
push:
branches:
- main
- master
paths:
- .github/workflows/semgrep.yml
schedule:
# random HH:MM to avoid a load spike on GitHub Actions at 00:00
- cron: 20 19 * * *
name: Semgrep
jobs:
semgrep:
name: semgrep/ci
runs-on: ubuntu-20.04
env:
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
container:
image: returntocorp/semgrep
steps:
- uses: actions/checkout@v3
- run: semgrep ci
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
path = tests/testdata
url = https://github.com/ethereum/tests
shallow = true
[submodule "internal/utesting/blocktraces"]
path = internal/utesting/blocktraces
url = https://github.com/scroll-tech/test-traces.git
Loading
Loading