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

fork6 nodev0.4.1 #45

Merged
merged 252 commits into from
Dec 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
252 commits
Select commit Hold shift + click to select a range
3c44fdc
improve: adding config param ReadLimit in bytes for websockets, and u…
Psykepro Jul 19, 2023
b051b8a
build(deps): bump github.com/jackc/pgconn from 1.14.0 to 1.14.1 (#2312)
dependabot[bot] Jul 21, 2023
8112f22
build(deps): bump github.com/rubenv/sql-migrate from 1.5.1 to 1.5.2 (…
dependabot[bot] Jul 21, 2023
30f230e
remove unnecessary config values and added RPC.WebSockets.ReadLimit d…
tclemos Jul 24, 2023
1cffb39
add jRPC ReadLimit log error handling and e2e test
tclemos Jul 24, 2023
517d5cc
Release/v0.2.0 to develop (#2322)
joanestebanr Jul 26, 2023
bbde910
build(deps): bump github.com/go-git/go-git/v5 from 5.7.0 to 5.8.1 (#2…
dependabot[bot] Jul 27, 2023
1794b72
build(deps): bump google.golang.org/grpc from 1.56.2 to 1.57.0 (#2331)
dependabot[bot] Jul 27, 2023
806d147
improve: Add IP and ZKCounter Validation, Refactor Batch Configs
Psykepro Jul 12, 2023
df00068
fixing comments
Psykepro Jul 27, 2023
53eefdd
fixing rebase errors
Psykepro Jul 27, 2023
7d1b672
improve: moving BatchConfig to state package
Psykepro Jul 27, 2023
9295967
Merge/v0.2.1 into develop (#2334)
ToniRamirezM Jul 27, 2023
bcc885e
fix estimate gas nonce computation to deal with sequencer concurrency…
tclemos Jul 27, 2023
01d8bbe
Update README diagram (#2303)
arnaubennassar Aug 1, 2023
82589a1
fixing state_db env vars
Psykepro Aug 1, 2023
0cbb920
Merge Release/v0.2.2 into develop (#2353)
ToniRamirezM Aug 2, 2023
712daca
build(deps): bump golang.org/x/net from 0.12.0 to 0.13.0 (#2354)
dependabot[bot] Aug 2, 2023
b27a6cc
build(deps): bump go.uber.org/zap from 1.24.0 to 1.25.0 (#2361)
dependabot[bot] Aug 3, 2023
a10a407
Merge v0.2.4 (includes v0.2.3) into Develop (#2376)
ToniRamirezM Aug 7, 2023
51f6ebd
Adaptation to new HashDB interface (#2367)
ToniRamirezM Aug 7, 2023
1f89598
build(deps): bump golang.org/x/net from 0.13.0 to 0.14.0 (#2380)
dependabot[bot] Aug 7, 2023
b1e8994
fix script (#2383)
ToniRamirezM Aug 7, 2023
1ea7e69
avoid double unlock in sequencer AddTxTracker (#2285)
icydark Aug 8, 2023
de58703
Fix typos (#2267)
criadoperez Aug 8, 2023
b18316e
fix http request instance null for websocket requests (#2385)
tclemos Aug 9, 2023
a0fb26a
Feature/2362 state use field batch l2data of processing context v2 (#…
joanestebanr Aug 9, 2023
d045bd5
build(deps): bump github.com/ethereum/go-ethereum from 1.12.0 to 1.12…
dependabot[bot] Aug 11, 2023
2072038
test: adding benchmark test script for uniswap
Psykepro Aug 2, 2023
c9c8d4d
test: fixing things and adding make entry for the e2e test.
Psykepro Aug 3, 2023
077fb50
fix ws subscribe to get filtered log notifications (#2396)
tclemos Aug 14, 2023
9d928c2
Merge branch 'develop' into bugfix/ip-validation
Psykepro Aug 14, 2023
4166e3f
bugfix: adding back the 'State' section in test.node.config.toml to f…
Psykepro Aug 16, 2023
f2d7f8c
Merge/v0.2.5 (#2413)
ToniRamirezM Aug 16, 2023
a2b49f7
build(deps): bump github.com/ethereum/go-ethereum from 1.12.1 to 1.12…
dependabot[bot] Aug 16, 2023
c4d4904
Merge pull request #2408 from 0xPolygonHermez/test/uniswap-benchmark-…
Psykepro Aug 17, 2023
a1476c9
fix safe and finalized l2 block to consider l1 safe and finalized blo…
tclemos Aug 17, 2023
181d16f
improve pre-EIP155 check (#2327)
tclemos Aug 18, 2023
a5b55a7
benmchmark: improving benchmark tests, adding main script to do all s…
Psykepro Aug 18, 2023
a6a1243
Merge branch 'develop' into bugfix/ip-validation
Psykepro Aug 18, 2023
b8f23d2
Merge pull request #2298 from 0xPolygonHermez/bugfix/ip-validation
Psykepro Aug 18, 2023
3086056
Makefile improvements (#2419)
criadoperez Aug 18, 2023
75cc2c8
Merge branch 'develop' into docs/benchmark-scripts-how-to
Psykepro Aug 21, 2023
72fe919
config: updating RPC.Websockets.ReadLimit=80MB
Psykepro Aug 21, 2023
8c82b18
Merge branch 'develop' into improve/websocket-server-dos-prevention
Psykepro Aug 21, 2023
3b6ccbe
docs: generating docs
Psykepro Aug 21, 2023
f65f0a9
fix: fixing config test values for 'RPC.WebSockets.ReadLimit'
Psykepro Aug 21, 2023
14733fb
improve: adding config params and check for batch requests for enabli…
Psykepro Aug 21, 2023
4a5ae0b
updating bytes sent in
Psykepro Aug 21, 2023
b99af0b
updating 'RPC.WebSockets.ReadLimit=100MB'
Psykepro Aug 21, 2023
295cd5b
update doc (#2433)
ToniRamirezM Aug 21, 2023
1361bc3
refactoring and adding tests to batch requests
tclemos Aug 21, 2023
99cb98b
linter fixes
tclemos Aug 21, 2023
101da01
Merge pull request #2304 from 0xPolygonHermez/improve/websocket-serve…
Psykepro Aug 22, 2023
9132e55
Merge branch 'develop' into improve/rpc-limit-batch-requests
Psykepro Aug 22, 2023
4fecb20
build(deps): bump github.com/google/uuid from 1.3.0 to 1.3.1 (#2436)
dependabot[bot] Aug 22, 2023
659b082
Merge pull request #2431 from 0xPolygonHermez/improve/rpc-limit-batch…
Psykepro Aug 22, 2023
57a8269
fixing check for pending txs and adding informational print for gas m…
Psykepro Aug 22, 2023
ce39e1d
fix and add tests for safe and finalized l2 blocks (#2424)
tclemos Aug 22, 2023
a2e3c52
review code owners to match with the current team structure (#2435)
tclemos Aug 23, 2023
12e7228
fix: fixing usage of num-ops param in 'benchmarks/sequencer/scripts'
Psykepro Aug 24, 2023
c40b8dd
fixing print in 'benchmarks/sequencer/../metrics'
Psykepro Aug 24, 2023
27b5c4e
Remove actual user names from PR template (#2470)
ToniRamirezM Aug 28, 2023
ecd76db
fix postgres version to 15 in docker compose files (#2471)
ToniRamirezM Aug 28, 2023
648af0a
Update production-setup.md
agnusmor Aug 28, 2023
e5faf3e
improve: improving scripts.
Psykepro Aug 29, 2023
5bc323d
Merge v0.3.0 into develop (#2474)
ToniRamirezM Aug 29, 2023
eb71392
Fix state configuration (#2478)
ARR552 Aug 30, 2023
710c364
Merge pull request #2422 from 0xPolygonHermez/docs/benchmark-scripts-…
Psykepro Aug 30, 2023
50d6268
add http request content limit (#2448)
tclemos Aug 30, 2023
f87b334
remove http call from trace by batch number; fix batch by number not …
tclemos Aug 30, 2023
cf207c7
reverting to working version of the scripts
Psykepro Aug 30, 2023
419e7ca
improve: adding handling of odd-length hex strings in .
Psykepro Aug 31, 2023
3b6e7b6
Merge pull request #2486 from 0xPolygonHermez/docs/benchmark-scripts-…
Psykepro Aug 31, 2023
9c52fa5
benchmarks: removing the need to get sequencer IP from aws.
Psykepro Sep 1, 2023
7130906
tool to rerun batches (#2498)
joanestebanr Sep 1, 2023
0f9098b
Merge pull request #2496 from 0xPolygonHermez/docs/benchmarks-how-to
Psykepro Sep 1, 2023
1da2eea
Merge pull request #2490 from 0xPolygonHermez/improve/decode-hex
Psykepro Sep 5, 2023
285ff0f
Cherrypick/fix convert process batch response (#2479)
ToniRamirezM Sep 5, 2023
8deda03
build(deps): bump golang.org/x/net from 0.14.0 to 0.15.0 (#2513)
dependabot[bot] Sep 6, 2023
4e1097e
build(deps): bump google.golang.org/grpc from 1.57.0 to 1.58.0 (#2520)
dependabot[bot] Sep 7, 2023
5f3c9d7
build(deps): bump github.com/invopop/jsonschema from 0.7.0 to 0.8.0 (…
dependabot[bot] Sep 7, 2023
bf351e8
Cherrypick/v0.3.1 to develop (#2516)
ARR552 Sep 8, 2023
d505253
Remove prover ports (aggregator) from docker-compose (#2525)
agnusmor Sep 8, 2023
7d9550c
Fix rom ooc error detection (#2527) (#2529)
ARR552 Sep 8, 2023
81288dc
fix logger (#2530)
ToniRamirezM Sep 8, 2023
d5c0135
Use ZKEVM_NETWORK variable to specify location of config files in doc…
agnusmor Sep 8, 2023
d9cc7fb
improve the way the jRPC server log errors when returning an error re…
tclemos Sep 12, 2023
2fec89e
add jRPC support to eth_coinbase (#2500)
tclemos Sep 12, 2023
d6cf591
only RPC component will refresh blocked addresses (#2501)
tclemos Sep 12, 2023
ddbea30
fix merges (#2537)
tclemos Sep 12, 2023
191ff41
build(deps): bump github.com/go-git/go-git/v5 from 5.8.1 to 5.9.0 (#2…
dependabot[bot] Sep 13, 2023
b083a59
avoid halt syncronization in permissionless nodes (#2536) (#2545)
ARR552 Sep 14, 2023
c9bb1f6
Fix nil evaluation (#2544) (#2548)
ToniRamirezM Sep 14, 2023
c1a9fcc
build(deps): bump google.golang.org/grpc from 1.58.0 to 1.58.1 (#2551)
dependabot[bot] Sep 15, 2023
77cf95b
build(deps): bump github.com/ethereum/go-ethereum from 1.12.2 to 1.13…
dependabot[bot] Sep 15, 2023
e8055e7
build(deps): bump go.uber.org/zap from 1.25.0 to 1.26.0 (#2550)
dependabot[bot] Sep 15, 2023
ab6f926
L1 synchronization in parallel (#2504)
joanestebanr Sep 15, 2023
ee35f06
build(deps): bump github.com/ethereum/go-ethereum from 1.13.0 to 1.13…
dependabot[bot] Sep 18, 2023
9cd6147
renamed test function to remove underscore (#2557)
joanestebanr Sep 18, 2023
2c00916
add unit and e2e tests for big batch l2 data (#2539)
tclemos Sep 19, 2023
342a8dc
Enable gasless txs on L2 (#2560) (#2565)
arnaubennassar Sep 20, 2023
4042d7f
Synchronizer L1 parallel: improve context usage (#2568)
joanestebanr Sep 20, 2023
98d035e
Fix Makefile: should start synchronizer before eth-tx-manager (#2553)
bap2pecs Sep 20, 2023
f6a3774
fix trace default values and add condition to define which trace shou…
tclemos Sep 21, 2023
d69bc87
Synchronizer L1 parallel: fix stuck due error on request (#2579)
joanestebanr Sep 21, 2023
f0240cb
improve: improving benchmark scripts.
Psykepro Sep 21, 2023
630e196
bugfix: fixing L2 Reorg check. (#2588)
Psykepro Sep 21, 2023
81e38d6
Synchronizer L1 parallel: add control between retries to avoid spammi…
joanestebanr Sep 22, 2023
46e4b57
DB index (#2562) (#2570)
ARR552 Sep 22, 2023
26cbeac
build(deps): bump google.golang.org/grpc from 1.58.1 to 1.58.2 (#2592)
dependabot[bot] Sep 22, 2023
4408040
Data Streamer (#2569)
ToniRamirezM Sep 22, 2023
b0bff2d
build(deps): bump github.com/spf13/afero from 1.9.5 to 1.10.0 (#2594)
dependabot[bot] Sep 26, 2023
e108a34
Merge pull request #2583 from 0xPolygonHermez/improve/benchmark-scripts
Psykepro Sep 26, 2023
9d6303e
fix deadlock on L1 synchronization when appears a ForkId that need a …
joanestebanr Oct 2, 2023
3536e12
build(deps): bump github.com/ethereum/go-ethereum from 1.13.1 to 1.13…
dependabot[bot] Oct 2, 2023
6b54a8c
build(deps): bump github.com/prometheus/client_golang (#2598)
dependabot[bot] Oct 2, 2023
310d4eb
fix error check returned by the executor when debug tracing a block (…
tclemos Oct 2, 2023
fc0ce02
remove deprecated TraceBatchUseHTTPS config (#2606)
tclemos Oct 2, 2023
73de485
build(deps): bump github.com/invopop/jsonschema from 0.8.0 to 0.10.0 …
dependabot[bot] Oct 3, 2023
1789458
race condition: reset trusted state memory var (#2602) (#2603)
ARR552 Oct 4, 2023
17bf7bc
build(deps): bump github.com/invopop/jsonschema from 0.10.0 to 0.11.0…
dependabot[bot] Oct 4, 2023
4dfabaf
build(deps): bump github.com/prometheus/client_model (#2612)
dependabot[bot] Oct 4, 2023
ac53abd
Populate stream file on sequencer startup (#2613) (#2614)
ToniRamirezM Oct 5, 2023
156cd76
build(deps): bump github.com/invopop/jsonschema from 0.11.0 to 0.12.0…
dependabot[bot] Oct 5, 2023
bf82f69
Feature/2595 l1 sync deadlock (#2616)
joanestebanr Oct 5, 2023
4c08c04
renaming: renaming dbManager.checkIfReorg to checkStateInconsistency.
Psykepro Oct 3, 2023
2b96683
add random ContextId when calling executor.ProcessBatch (#2575)
tclemos Oct 5, 2023
fdee8fa
add unit test to validate jRPC max request limit per ip and second (#…
tclemos Oct 5, 2023
307bc3b
Merge pull request #2609 from 0xPolygonHermez/improve/seq-dban-change…
Psykepro Oct 5, 2023
dfa0a23
Feature/jrpc log limit (#2572)
tclemos Oct 5, 2023
f835c57
build(deps): bump golang.org/x/crypto from 0.13.0 to 0.14.0 (#2622)
dependabot[bot] Oct 6, 2023
12327f9
build(deps): bump golang.org/x/net from 0.15.0 to 0.16.0 (#2623)
dependabot[bot] Oct 6, 2023
88cd7a3
migration + tests and queries (#2625) (#2626)
ARR552 Oct 6, 2023
d3e77db
build(deps): bump golang.org/x/sync from 0.3.0 to 0.4.0 (#2621)
dependabot[bot] Oct 6, 2023
96f039a
build(deps): bump github.com/spf13/viper from 1.16.0 to 1.17.0 (#2628)
dependabot[bot] Oct 9, 2023
d61b40d
Update mock files using mockery v2.22.1 to v2.32.0 (#2630)
agnusmor Oct 9, 2023
52ee880
Fix encodng tx in stream (#2629) (#2631)
ToniRamirezM Oct 9, 2023
b169d93
Fix encode into stream (#2634) (#2636)
ToniRamirezM Oct 10, 2023
99b390a
Cherrypick/#2632 #2637 (#2639)
ARR552 Oct 11, 2023
db6142b
Cherrypick/2642 2647 (#2648)
ToniRamirezM Oct 11, 2023
87dc818
build(deps): bump golang.org/x/net from 0.16.0 to 0.17.0 (#2645)
dependabot[bot] Oct 11, 2023
bc33559
Fix debug tracer error message (#2345)
tclemos Oct 11, 2023
9ea4ab4
Improve WS subscription (#2635)
tclemos Oct 13, 2023
d9ee00b
build(deps): bump google.golang.org/grpc from 1.58.2 to 1.58.3 (#2644)
dependabot[bot] Oct 16, 2023
f946973
check for bookmark entry in data stream file (#2670) (#2671)
ToniRamirezM Oct 16, 2023
507c1cc
build(deps): bump github.com/0xPolygonHermez/zkevm-data-streamer (#2665)
dependabot[bot] Oct 16, 2023
d9031d6
Refactor data stream tool (#2653) (#2657)
ToniRamirezM Oct 17, 2023
9e0b776
build(deps): bump github.com/fatih/color from 1.14.1 to 1.15.0 (#2675)
dependabot[bot] Oct 17, 2023
fb374d0
build(deps): bump github.com/prometheus/client_golang (#2674)
dependabot[bot] Oct 17, 2023
1b8ba45
+ fix behaviour on persistent errors and add logs to the creation of …
joanestebanr Oct 17, 2023
496d4a1
Upgrade to go 1.21 (#2676)
ToniRamirezM Oct 17, 2023
ffcacec
+ L1 synchronization parallel: add logs to batches, fix control of co…
joanestebanr Oct 18, 2023
8d2bd6b
build(deps): bump google.golang.org/grpc from 1.58.3 to 1.59.0 (#2679)
dependabot[bot] Oct 18, 2023
ad11702
Cherrypick/2680 (#2688)
ToniRamirezM Oct 19, 2023
b63abb4
build(deps): bump github.com/prometheus/common from 0.44.0 to 0.45.0 …
dependabot[bot] Oct 19, 2023
f8111b3
add new endpoint zkevm_getNativeBlockHashesInRange (#2661)
tclemos Oct 19, 2023
bccca96
update code owners (#2703)
ToniRamirezM Oct 23, 2023
c9218a3
Cherrypick/v0.3.3-RC6 (#2702)
ToniRamirezM Oct 23, 2023
4309add
Add pool.whitelisted table (#2704)
agnusmor Oct 23, 2023
0a9be06
+ Synchronizer L1 parallel: rollupinfo request for lastest block, add…
joanestebanr Oct 24, 2023
3a4aa63
+ add coverage report to sonarcloud (#2706)
joanestebanr Oct 25, 2023
4225e2f
build(deps): bump github.com/go-git/go-git/v5 from 5.9.0 to 5.10.0 (#…
dependabot[bot] Oct 26, 2023
22cd750
Add online tooling for data stream (#2712) (#2715)
ToniRamirezM Oct 26, 2023
5a4e837
fix streamer tool logs (#2717)
ToniRamirezM Oct 26, 2023
eea3365
Fix release process: version binaries, patch > 9, testnet.zip file
joanestebanr Oct 26, 2023
5f4fd20
build(deps): bump github.com/google/uuid from 1.3.1 to 1.4.0 (#2721)
dependabot[bot] Oct 30, 2023
9dfe866
revert changes on config file (#2725)
joanestebanr Oct 30, 2023
6c79d61
Update zkevm-data-streamer to v0.1.8 (#2723)
ToniRamirezM Oct 30, 2023
836c456
add config to enable or disable http logs (#2709)
tclemos Oct 30, 2023
3335bdf
review l2 block and batch tags: earliest, latest, pending, safe and f…
tclemos Oct 30, 2023
49a734a
ethtxmanager improvements (#2664)
tclemos Oct 30, 2023
6d36aa2
fix nil pointer when fails etherman call (#2730)
joanestebanr Oct 30, 2023
99b4749
add pool indexes (#2731)
ToniRamirezM Oct 30, 2023
46d88db
update GHA workflows to use latest docker package versions (#2718)
tclemos Oct 30, 2023
8c349ee
delete failed txs during pool cleanup (#2733)
ToniRamirezM Oct 31, 2023
d16f73d
Improve effective gas price implementation (RPC filter, gasprice/bala…
agnusmor Oct 31, 2023
18f65c0
Fix GlobalQueue/AccountQueue pool config (#2738)
agnusmor Oct 31, 2023
a724c46
Properly handle sequenced empty batches with GER Update (#2742) (#2743)
ToniRamirezM Nov 2, 2023
f25cc0b
update stream library (#2746)
ToniRamirezM Nov 3, 2023
1084b4a
Fix missing pool.Config parameter when creating a new Sequencer (#2741)
agnusmor Nov 3, 2023
d98427e
Update/websocketslib (#2757)
ToniRamirezM Nov 7, 2023
a4770f3
+ renamed config vars for L1 parallel sync (#2768)
joanestebanr Nov 8, 2023
29ceae4
Added L2GasPriceSuggesterFactor config parameter to simulate estimate…
agnusmor Nov 10, 2023
987a1b7
add queue to ws subscription filters (#2769)
tclemos Nov 10, 2023
ef19614
fix trace internal tx gas used computation (#2778)
tclemos Nov 10, 2023
1561b44
replace atomic wsConn by concurrentWsConn (#2782) (#2790)
tclemos Nov 14, 2023
12c35fb
Update GER on closed batch without txs (#2793) (#2795)
ToniRamirezM Nov 15, 2023
76b4698
cherry pick 2785 (#2796)
ToniRamirezM Nov 16, 2023
837db8e
cherry pick the latest WS improvements into v0.4.0 (#2800)
tclemos Nov 16, 2023
e84aec6
update prover images to v3.0.2 (#2802)
agnusmor Nov 17, 2023
6d8cd1e
set synchronizer sequential mode as default (#2807)
joanestebanr Nov 20, 2023
a66e1a8
add response headers to all http responses (#2829)
tclemos Nov 23, 2023
8d8eab0
Merge pull request #9 from okx/zjg/fork5-dac
KamiD Oct 12, 2023
95ba58d
fix
scf0220 Nov 26, 2023
31133ff
Add logs for sequencer (#14)
giskook Oct 12, 2023
10e7f32
support innertx (#16)
giskook Oct 12, 2023
369582a
add switch for pending transaction filter (#18)
lyh169 Oct 12, 2023
80e01ce
Update endpoints_eth.go
scf0220 Nov 26, 2023
c21f41e
suport free gas to claim asset (#22)
chengzhinei Oct 12, 2023
489fba8
fix
scf0220 Nov 26, 2023
a70db40
Update worker.go
scf0220 Nov 26, 2023
7382239
Update run.go
scf0220 Nov 26, 2023
aaccd72
add gp adjust (#17)
lyh169 Oct 12, 2023
774cf38
fix
scf0220 Nov 26, 2023
b5a461a
validium/rollup switch (#26)
zjg555543 Oct 23, 2023
e1effdc
fix
scf0220 Nov 26, 2023
5693c64
support nacos (#27)
giskook Oct 23, 2023
eec2d70
fix
scf0220 Nov 26, 2023
766e953
sync fix ws debug (#28)
lyh169 Oct 27, 2023
7575973
Support websocket to register nacos (#33)
giskook Nov 6, 2023
d86a76b
support flatCallTracer and result limit for trace transaction (#40)
ylsGit Nov 14, 2023
dabf197
fix make deploy-sc error (#38)
zjg555543 Nov 14, 2023
e4e71ae
test xgon
scf0220 Nov 26, 2023
283a53f
1
scf0220 Nov 27, 2023
88bb2d2
add gas price dynamic adjust in follower mode (#34)
lyh169 Dec 4, 2023
7b2112f
fix compile
scf0220 Dec 13, 2023
6603ea7
Merge branch 'release/v0.1.1' into scf-v041-pr
scf0220 Dec 13, 2023
f8fdd58
first commit
scf0220 Dec 13, 2023
acfc066
Update db.go
scf0220 Dec 13, 2023
79b32a4
Update datacommittee_test.go
scf0220 Dec 13, 2023
d9b74e5
format
scf0220 Dec 13, 2023
0cc9117
fmt
scf0220 Dec 13, 2023
659cf7d
goimport
Dec 13, 2023
d60777c
1
scf0220 Dec 13, 2023
b6d1239
1
scf0220 Dec 13, 2023
5d37cf4
fix
scf0220 Dec 13, 2023
34f2096
Update start.go
scf0220 Dec 13, 2023
8b9f1b7
1
scf0220 Dec 13, 2023
4eb20c5
a
Dec 13, 2023
16311d4
1
scf0220 Dec 13, 2023
adecaa7
Merge branch 'scf-v041-pr-fix-test' of https://github.com/okx/x1-node…
scf0220 Dec 13, 2023
dd71a1b
a
Dec 13, 2023
863c463
Update Makefile
scf0220 Dec 13, 2023
ea649ea
fix test
scf0220 Dec 13, 2023
389070c
Update setup.go
scf0220 Dec 13, 2023
69a484f
a
Dec 14, 2023
3583f66
update makefile
zjg555543 Dec 14, 2023
5e4306c
update makefile
zjg555543 Dec 14, 2023
5f2a7b0
fix ut
zjg555543 Dec 14, 2023
6b71012
update
zjg555543 Dec 14, 2023
1e8ee00
update
zjg555543 Dec 14, 2023
8ca5c23
update
zjg555543 Dec 14, 2023
05f9da5
disabel
zjg555543 Dec 14, 2023
ac87a06
udpate
zjg555543 Dec 14, 2023
afcdff4
update
zjg555543 Dec 14, 2023
d43951e
update
zjg555543 Dec 14, 2023
520d32c
fix e2e
zjg555543 Dec 14, 2023
e8d726d
update permissionless-node
zjg555543 Dec 14, 2023
ff798a9
update
zjg555543 Dec 15, 2023
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
  •  
  •  
  •  
27 changes: 17 additions & 10 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
*.md @arnaubennassar
aggregator/ @Mikelle @KonradIT
cmd/ @tclemos
db/ @Mikelle @tclemos
docs/ @arnaubennassar
etherman/ @ARR552 @cool-develope
jsonrpc/ @tclemos @KonradIT
pool/ @Mikelle @tclemos @KonradIT
sequencer/ @Mikelle @ToniRamirezM @KonradIT
*.md @agnusmor
aggregator/ @agnusmor
ci/ @agnusmor @tclemos @ToniRamirezM @ARR552
cmd/ @tclemos @ToniRamirezM @ARR552
config/ @agnusmor @tclemos @ToniRamirezM @ARR552
db/ @tclemos @ToniRamirezM @ARR552
docs/ @agnusmor @joanestebanr
etherman/ @ARR552 @joanestebanr
ethtxmanager/ @tclemos
gasprice/ @ARR552
jsonrpc/ @tclemos
merkletree/ @ToniRamirezM
pool/ @tclemos
proto/ @ToniRamirezM
sequencer/ @ToniRamirezM @dpunish3r @agnusmor
sequencesender/ @ToniRamirezM @dpunish3r @agnusmor
state/ @ToniRamirezM @tclemos
synchronizer/ @ARR552 @cool-develope
synchronizer/ @ARR552 @joanestebanr
test/ @tclemos
4 changes: 2 additions & 2 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ Codeowner reviewers:

<!-- Codeowners should review only the part of code that they own, they're added automatically as reviewers and it's good to let them know that they shouldn't do a full review -->

- @Alice
- @Bob
- @-Alice
- @-Bob
12 changes: 7 additions & 5 deletions .github/workflows/jsonschema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
json-schema:
strategy:
matrix:
go-version: [ 1.19.x ]
go-version: [ 1.21.x ]
goarch: [ "amd64" ]
runs-on: ubuntu-latest
steps:
Expand All @@ -32,11 +32,13 @@ jobs:
env:
GOARCH: ${{ matrix.goarch }}

- uses: actions/setup-python@v1
- uses: BSFishy/pip-action@v1
- uses: actions/setup-python@v4
with:
packages: |
json-schema-for-humans
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install json-schema-for-humans

- name: Check if JSON schema and generated doc is up to date
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.19.x
go-version: 1.21.x
- name: Checkout code
uses: actions/checkout@v3
- name: Lint
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/push-docker-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@ jobs:
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
platforms: linux/amd64,linux/arm64
push: true
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/push-docker-tagged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@ jobs:
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ name: release
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]' # this action will only run on tags that follow semver

- 'v[0-9]+.[0-9]+.[0-9]+' # this action will only run on tags that follow semver
jobs:
releaser:
runs-on: ubuntu-latest
Expand All @@ -17,7 +16,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.21

- name: Get packr
run: go install github.com/gobuffalo/packr/v2/[email protected]
Expand All @@ -41,6 +40,7 @@ jobs:
mkdir -p testnet/db/scripts
cp config/environments/testnet/* testnet/config/environments/testnet
cp docker-compose.yml testnet
sed -i 's/\/config\/environments\/${ZKEVM_NETWORK}/\/config\/environments\/testnet/g' testnet/docker-compose.yml
cp db/scripts/init_prover_db.sql testnet/db/scripts
mv testnet/config/environments/testnet/example.env testnet
sed -i -e "s/image: zkevm-node/image: hermeznetwork\/zkevm-node:$GIT_TAG_NAME/g" testnet/docker-compose.yml
Expand All @@ -50,6 +50,7 @@ jobs:
mkdir -p mainnet/db/scripts
cp config/environments/mainnet/* mainnet/config/environments/mainnet
cp docker-compose.yml mainnet
sed -i 's/\/config\/environments\/${ZKEVM_NETWORK}/\/config\/environments\/mainnet/g' mainnet/docker-compose.yml
cp db/scripts/init_prover_db.sql mainnet/db/scripts
mv mainnet/config/environments/mainnet/example.env mainnet
sed -i -e "s/image: zkevm-node/image: hermeznetwork\/zkevm-node:$GIT_TAG_NAME/g" mainnet/docker-compose.yml
Expand Down
13 changes: 12 additions & 1 deletion .github/workflows/sonarqube.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,27 @@ on:
push:
branches:
- develop
- feature/sonarcloud-coverage

jobs:
sonarqube:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
# Disabling shallow clone is recommended for improving relevancy of reporting.
fetch-depth: 0

- name: Compile SCs
run: make compile-scs
working-directory: test

- name: Test
env:
ZKPROVER_URI: 127.0.0.1
run: make test-full-non-e2e
working-directory: test

# Triggering SonarQube analysis as results of it are required by Quality Gate check.
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
go-version: [ 1.19.x ]
go-version: [ 1.21.x ]
goarch: [ "amd64" ]
e2e-group: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, dac-1 ]
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-from-prover.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

strategy:
matrix:
go-version: [ 1.19.x ]
go-version: [ 1.21.x ]
goarch: [ "amd64" ]
e2e-group: [ 2 ]

Expand All @@ -35,7 +35,7 @@ jobs:
GOARCH: ${{ matrix.goarch }}

- name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-full-non-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
test-full-non-e2e:
strategy:
matrix:
go-version: [ 1.19.x ]
go-version: [ 1.21.x ]
goarch: [ "amd64" ]
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/updatedeps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: "1.19.x"
go-version: "1.21.x"
env:
GOARCH: "amd64"

Expand Down
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
/test/contracts/bin/**/*.bin
/test/contracts/bin/**/*.abi

/tools/datastreamer/*.bin
/test/datastreamer/*.db/*
/test/*.bin
/test/*.db/*

**/.DS_Store
.vscode
.idea/
Expand All @@ -18,4 +23,6 @@ out.dat

cmd/__debug_bin

.venv
.venv

*metrics.txt
5 changes: 5 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ builds:
- arm64
env:
- CGO_ENABLED=0
ldflags:
- -X github.com/0xPolygonHermez/zkevm-node.Version={{.Version}}
- -X github.com/0xPolygonHermez/zkevm-node.GitRev={{.Commit}}
- -X github.com/0xPolygonHermez/zkevm-node.BuildDate={{.Date}}
- -X github.com/0xPolygonHermez/zkevm-node.GitBranch={{.Branch}}
release:
# If set to auto, will mark the release as not ready for production
# in case there is an indicator for this in the tag e.g. v1.0.0-rc1
Expand Down
8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@

This document addresses how we should create PRs, give and receive reviews. The motivation is to have better code, reduce the time from creation to merge while sharing knowledge and insights that help everyone becoming better developers.

Note that non of this is a hard rule, but suggestions / guidelines. Although everyone is encouraged to stick to this points as much as posible. Use your common sense if some of this do not apply well on a particular PR
Note that non of this is a hard rule, but suggestions / guidelines. Although everyone is encouraged to stick to this points as much as possible. Use your common sense if some of this do not apply well on a particular PR

## How to create a good PR

- Follow the template, unless for some reason it doesn't fit the content of the PR
- Try hard on doing small PRs (> ~400 lines), in general is better to have 2 small PRs rather than a big one
- Indicate clearly who should review it, ideally 2 team mates
- Author of the PR is responsible for merging. Never do it until you have the aproval of the specified reviewers unless you have their explicit permision
- Author of the PR is responsible for merging. Never do it until you have the approval of the specified reviewers unless you have their explicit permission
- Introduce the purpose of the PR, for example: `Fixes the handle of ...`
- Give brief context on why this is being done and link it to any relevant issue
- Feel free to ask to specific team mates to review specific parts of the PR

## How to do a good review

- In general it's hard to set a quality treshold for changes. A good measure for when to approve is to accept changes once the overall quality of the code has been improved (compared to the code base before the PR)
- Try hard to avoid taking things personaly. For instance avoid using `I`, `you`, `I (don't) like`, ...
- In general it's hard to set a quality threshold for changes. A good measure for when to approve is to accept changes once the overall quality of the code has been improved (compared to the code base before the PR)
- Try hard to avoid taking things personally. For instance avoid using `I`, `you`, `I (don't) like`, ...
- Ask, don’t tell. ("What about trying...?" rather than "Don’t do...")
- Try to use positive language. You can even use emoji to clarify tone.
- Be super clear on how confident you are when requesting changes. One way to do it is by starting the message like this:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# CONTAINER FOR BUILDING BINARY
FROM golang:1.19 AS build
FROM golang:1.21 AS build

# INSTALL DEPENDENCIES
RUN go install github.com/gobuffalo/packr/v2/[email protected]
Expand Down
Loading
Loading