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

Feat: use cmd to setup data committee #3

Open
wants to merge 129 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
129 commits
Select commit Hold shift + click to select a range
2ef0c25
fix null effective_percentage
ToniRamirezM Jun 30, 2023
7980151
fix forkID calculation
ToniRamirezM Jun 30, 2023
224a11e
fix script
ToniRamirezM Jun 30, 2023
13bcd29
generate json-schema + docs for node config file and network_custom
joanestebanr Jul 4, 2023
41c63ab
fix unittest
joanestebanr Jul 5, 2023
5a85d85
Hotfixv0.1.4 to v0.2.0 (#2255)
ARR552 Jul 5, 2023
d055c40
Effective GasPrice refactor+fixes (#2247)
agnusmor Jul 5, 2023
76dc7d5
Fix/#2257 effective gas price receipt (#2258)
ARR552 Jul 5, 2023
87200f1
bugfix: fixing l2blocks timestamp for the fist batch (#2260)
ARR552 Jul 5, 2023
9f39433
add more comments, and removed fields PrivateKeyPath and PrivateKeyPa…
joanestebanr Jul 6, 2023
b21258d
add info to git action
joanestebanr Jul 6, 2023
7197f4e
add info to git action
joanestebanr Jul 6, 2023
7e3d34d
fix github action
joanestebanr Jul 6, 2023
8566eed
Merge remote-tracking branch 'origin/develop' into feature/#2200-add-…
joanestebanr Jul 7, 2023
b6e034f
updated comments
joanestebanr Jul 7, 2023
71541ee
updated comments
joanestebanr Jul 7, 2023
623089a
Fix/#2263 gas used (#2264)
ARR552 Jul 10, 2023
9d03f8b
Fix pending tx when duplicate nonce (#2270)
agnusmor Jul 10, 2023
40b084b
Only return a tx from the pool if tx is in pending status (#2273)
ARR552 Jul 10, 2023
17a95f5
Merge pull request #2252 from 0xPolygonHermez/feature/#2200-add-docum…
joanestebanr Jul 11, 2023
867aaaf
fix documentation with config file
joanestebanr Jul 11, 2023
198243a
improve: adding check to skip appending effectivePercentage if curren…
Psykepro Jul 11, 2023
c00e4fa
Merge pull request #2275 from 0xPolygonHermez/improve/add-check-for-f…
Psykepro Jul 11, 2023
861dbba
Fiex effectiveGasprice unsigned txs with forkId lower than 5 (#2278)
ARR552 Jul 11, 2023
e7e9f5b
feat: adding functionality to stop sequencer on specific batch num fr…
Psykepro Jul 12, 2023
caa9a3a
Merge pull request #2282 from 0xPolygonHermez/feature/stop-sequencer-…
Psykepro Jul 13, 2023
a4d0b88
patch: adding print for X-Real-IP in JSON-RPC
Psykepro Jul 14, 2023
32bf764
Fix checkIfSynced (#2289)
ARR552 Jul 14, 2023
b5d5145
[Rehashing] Check logs order and fix blockhash and blockNumber in the…
ARR552 Jul 14, 2023
2b1ea5f
Merge pull request #2286 from 0xPolygonHermez/patch/add-print-for-X-R…
Psykepro Jul 14, 2023
e314df2
flushID synchronizer (#2287)
ARR552 Jul 14, 2023
c9b4057
executor error refactor (#2299)
ToniRamirezM Jul 19, 2023
80c471d
handle invalid rlp ROM error (#2297)
ToniRamirezM Jul 19, 2023
13cafe2
add maxL2GasPrice (#2294)
ToniRamirezM Jul 19, 2023
c761cea
Error refactor (#2302)
ToniRamirezM Jul 19, 2023
9b409e4
Fix replaced tx as failed when duplicated nonce (#2308)
agnusmor Jul 20, 2023
31eb8a4
log reprocess need (#2309)
ToniRamirezM Jul 20, 2023
978e77b
Feature/2300 synchronizer detect if executor restart (#2306)
joanestebanr Jul 21, 2023
a814dc0
Update prover images (#2311)
ToniRamirezM Jul 21, 2023
c66222f
add doc, and fix dockers to be able to use snap/restore feature (#2315)
joanestebanr Jul 21, 2023
2da46fd
Update docker-compose.yml
ToniRamirezM Jul 21, 2023
6fd4c75
Update docker-compose.yml
ToniRamirezM Jul 21, 2023
44356c8
do not add tx to the pool in case err != nil
ToniRamirezM Jul 26, 2023
822858c
do not add tx into the pool if a fatal error in the executor happens …
ToniRamirezM Jul 26, 2023
7d10f46
fix dbMultiWriteSinglePosition config value
tclemos Jul 27, 2023
6a6fc6f
workarround for the error error closing batch
joanestebanr Jul 28, 2023
d6aa5e0
workarround for the error error closing batch
joanestebanr Jul 28, 2023
203751a
workarround for the error error closing batch
joanestebanr Jul 28, 2023
d0e95a8
workaround for the error of closing batch, another case
joanestebanr Jul 28, 2023
38a97f0
`Worker`'s `AddTxTracker` Bug Fix (#2343)
Psykepro Jul 31, 2023
80c8f20
rename config files (#2349)
ToniRamirezM Aug 1, 2023
1389c6b
fix closing batch + logs (#2348)
ARR552 Aug 1, 2023
c99bc9f
Update README.md
ToniRamirezM Aug 1, 2023
7036565
Update release.yml
ToniRamirezM Aug 1, 2023
59fff83
Merge pull request #6 from 0xPolygonHermez/develop
arnaubennassar Aug 2, 2023
4806b58
bugfix: fixing place where we need to increment the wg per address fo…
Psykepro Aug 2, 2023
dce5cd0
Merge pull request #2356 from 0xPolygonHermez/bufix/worker-addrqueue-…
Psykepro Aug 2, 2023
6996cc4
LFG Validium
arnaubennassar Aug 2, 2023
623bd0b
Fix linter
arnaubennassar Aug 2, 2023
021c4cd
Update config docs
arnaubennassar Aug 2, 2023
31384a2
Add missing E2E tests
arnaubennassar Aug 2, 2023
2298c8f
Store batchL2Data when the batch is opened (#2358)
ARR552 Aug 3, 2023
24cbf1a
add GasPriceMarginFactor and MaxGasPrice to eth-tx-manager (#2360)
tclemos Aug 3, 2023
22e4985
Fix E2E test 10
arnaubennassar Aug 3, 2023
6db064b
Merge pull request #7 from 0xPolygon/rollup2validium-same-imports
arnaubennassar Aug 3, 2023
9c32934
bugfix: attaching missing TxTracker.From to pending txs to store for …
Psykepro Aug 3, 2023
de6206f
Update README.md
ToniRamirezM Aug 3, 2023
8ec1474
improve: adding logs (#2373)
Psykepro Aug 4, 2023
e15805d
bugfix: fixing finalizer's handling. (#2375)
Psykepro Aug 4, 2023
ca3cc9d
Update README.md
ToniRamirezM Aug 4, 2023
81a6bf6
change hashdb go package
ToniRamirezM Aug 3, 2023
901466f
new hashdb interface
ToniRamirezM Aug 3, 2023
8275016
aggregator pb refactor
ToniRamirezM Aug 3, 2023
9a5b26e
new prover image
ToniRamirezM Aug 3, 2023
6dffbfb
change prover config
ToniRamirezM Aug 3, 2023
4dcd6b0
update prover image
ToniRamirezM Aug 3, 2023
c53d87a
update to latest proto and prover image
ToniRamirezM Aug 5, 2023
8d4ba17
Refactor nonce calculation for addQueue (#2382)
ToniRamirezM Aug 7, 2023
23f4290
fix script
ToniRamirezM Aug 7, 2023
571de06
cli interface for view/update allow/deny policies
christophercampbell Aug 7, 2023
1cfd28c
linting
christophercampbell Aug 7, 2023
c05398c
check to avoid data inconsistencies (#2387)
ARR552 Aug 8, 2023
f286d0a
reverse policy action wrt list for easier end user reasoning
christophercampbell Aug 8, 2023
98ce3d7
alphabetize help menu
christophercampbell Aug 8, 2023
8848855
Refactor: avoid delete addrQueue if it has pending txs to store (#2391)
agnusmor Aug 9, 2023
a5f96d9
Merge pull request #9 from 0xPolygon/Feature/allow-cli
christophercampbell Aug 9, 2023
5784aea
Sort txs in worker by gasPrice (remove efficiency sort) (#2392)
agnusmor Aug 9, 2023
072be43
use useMainExecGenerated (#2393)
ToniRamirezM Aug 9, 2023
b4e9dfb
Fix store forced batch tx (#2394)
agnusmor Aug 9, 2023
f041a1b
l2coinbase (#2400)
ARR552 Aug 11, 2023
9ad731f
Fix conflicts
arnaubennassar Aug 21, 2023
26701d1
fix tests
arnaubennassar Aug 21, 2023
6dee810
fix linter
arnaubennassar Aug 21, 2023
2c05f90
gen config doc
arnaubennassar Aug 21, 2023
c4549b4
update prover and contracts
arnaubennassar Aug 22, 2023
863a8f9
update genesisBlockNumber
arnaubennassar Aug 22, 2023
06ec9bf
rollback docker L1
arnaubennassar Aug 23, 2023
5163ed6
update docker L1
arnaubennassar Aug 23, 2023
6d76273
Fix nil when err on CalculateTxBreakEvenGasPrice
arnaubennassar Aug 23, 2023
ebb2d26
Fix nil when err on CalculateTxBreakEvenGasPrice
arnaubennassar Aug 23, 2023
a0b6388
Fix nil when err on CalculateTxBreakEvenGasPrice
arnaubennassar Aug 23, 2023
9b54d49
remove log for e2e test
arnaubennassar Aug 23, 2023
29fc20d
Merge pull request #12 from 0xPolygon/pullupstream/v0.2.5
arnaubennassar Aug 23, 2023
393a55c
Contracts updated after cdk renaminf
arnaubennassar Aug 24, 2023
4a68954
Contracts updated after cdk renaminf
arnaubennassar Aug 24, 2023
97d3387
Contracts updated after cdk renaminf
arnaubennassar Aug 24, 2023
59028cf
Rename dac
arnaubennassar Aug 24, 2023
0a84fe9
gen docs and mocks
arnaubennassar Aug 24, 2023
8fa620b
Fix env prefix
arnaubennassar Aug 24, 2023
74ad1fb
WIP
arnaubennassar Aug 24, 2023
33e23d5
WIP
arnaubennassar Aug 24, 2023
298a66f
WIP
arnaubennassar Aug 24, 2023
53a4ff4
Merge pull request #13 from 0xPolygon/cdk
arnaubennassar Aug 28, 2023
c95bf34
Updated README
arnaubennassar Aug 29, 2023
a524449
Updated README
arnaubennassar Aug 29, 2023
5fe7487
Updated README
arnaubennassar Aug 29, 2023
1e872a0
Updated README
arnaubennassar Aug 29, 2023
78f8663
Updated README
arnaubennassar Aug 29, 2023
215eafb
Updated README
arnaubennassar Aug 29, 2023
a8dbf2c
Updated README
arnaubennassar Aug 29, 2023
6ef010a
Updated README
arnaubennassar Aug 29, 2023
81ea6cf
Updated README
arnaubennassar Aug 29, 2023
a3f9fc7
Updated README
arnaubennassar Aug 29, 2023
9cbba5e
Merge pull request #19 from 0xPolygon/readme
arnaubennassar Aug 29, 2023
841a667
Updated README
arnaubennassar Aug 29, 2023
9da5739
Merge pull request #20 from 0xPolygon/readme
arnaubennassar Aug 29, 2023
f1211f0
Feat: SNA-287 zkvalidium integration (#1)
lesterli Aug 29, 2023
fbd595d
Merge remote-tracking branch 'upstream/develop' into develop
bap2pecs Aug 29, 2023
5e2dd2d
add a new cli cmd to setup data committee
lesterli Sep 6, 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
  •  
  •  
  •  
12 changes: 0 additions & 12 deletions .github/CODEOWNERS

This file was deleted.

31 changes: 0 additions & 31 deletions .github/ISSUE_TEMPLATE/bug.md

This file was deleted.

17 changes: 0 additions & 17 deletions .github/ISSUE_TEMPLATE/feature.md

This file was deleted.

9 changes: 0 additions & 9 deletions .github/ISSUE_TEMPLATE/question.md

This file was deleted.

22 changes: 0 additions & 22 deletions .github/pull_request_template.md

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/push-docker-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
tags: |
hermeznetwork/zkevm-node:develop
hermeznetwork/cdk-validium-node:develop
2 changes: 1 addition & 1 deletion .github/workflows/push-docker-tagged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
tags: |
hermeznetwork/zkevm-node:${{ github.ref_name }}
hermeznetwork/cdk-validium-node:${{ github.ref_name }}
2 changes: 1 addition & 1 deletion .github/workflows/test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
matrix:
go-version: [ 1.19.x ]
goarch: [ "amd64" ]
e2e-group: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ]
e2e-group: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, cdk-validium-1 ]
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down
52 changes: 0 additions & 52 deletions .github/workflows/test-from-prover.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
.env
out.dat

cmd/__debug_bin
**__debug_bin

.venv
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ RUN cd /src && make build

# CONTAINER FOR RUNNING BINARY
FROM alpine:3.18.0
COPY --from=build /src/dist/zkevm-node /app/zkevm-node
COPY --from=build /src/config/environments/testnet/node.config.toml /app/example.config.toml
COPY --from=build /src/dist/cdk-validium-node /app/cdk-validium-node
RUN apk update && apk add postgresql15-client
EXPOSE 8123
CMD ["/bin/sh", "-c", "/app/zkevm-node run"]
CMD ["/bin/sh", "-c", "/app/cdk-validium-node run"]
34 changes: 10 additions & 24 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ endif
GOBASE := $(shell pwd)
GOBIN := $(GOBASE)/dist
GOENVVARS := GOBIN=$(GOBIN) CGO_ENABLED=0 GOOS=linux GOARCH=$(ARCH)
GOBINARY := zkevm-node
GOBINARY := cdk-validium-node
GOCMD := $(GOBASE)/cmd

LDFLAGS += -X 'github.com/0xPolygonHermez/zkevm-node.Version=$(VERSION)'
LDFLAGS += -X 'github.com/0xPolygonHermez/zkevm-node.GitRev=$(GITREV)'
LDFLAGS += -X 'github.com/0xPolygonHermez/zkevm-node.GitBranch=$(GITBRANCH)'
LDFLAGS += -X 'github.com/0xPolygonHermez/zkevm-node.BuildDate=$(DATE)'
LDFLAGS += -X 'github.com/0xPolygon/cdk-validium-node.Version=$(VERSION)'
LDFLAGS += -X 'github.com/0xPolygon/cdk-validium-node.GitRev=$(GITREV)'
LDFLAGS += -X 'github.com/0xPolygon/cdk-validium-node.GitBranch=$(GITBRANCH)'
LDFLAGS += -X 'github.com/0xPolygon/cdk-validium-node.BuildDate=$(DATE)'

# Variables
VENV = .venv
Expand All @@ -35,25 +35,11 @@ build: ## Builds the binary locally into ./dist

.PHONY: build-docker
build-docker: ## Builds a docker image with the node binary
docker build -t zkevm-node -f ./Dockerfile .
docker build -t snapchain/cdk-validium-node -f ./Dockerfile .

.PHONY: build-docker-nc
build-docker-nc: ## Builds a docker image with the node binary - but without build cache
docker build --no-cache=true -t zkevm-node -f ./Dockerfile .

.PHONY: run-rpc
run-rpc: ## Runs all the services need to run a local zkEMV RPC node
docker-compose up -d zkevm-state-db zkevm-pool-db
sleep 2
docker-compose up -d zkevm-prover
sleep 5
docker-compose up -d zkevm-sync
sleep 2
docker-compose up -d zkevm-rpc

.PHONY: stop
stop: ## Stops all services
docker-compose down
docker build --no-cache=true -t snapchain/cdk-validium-node -f ./Dockerfile .

.PHONY: install-linter
install-linter: ## Installs the linter
Expand Down Expand Up @@ -119,9 +105,9 @@ install-git-hooks: ## Moves hook files to the .git/hooks directory

.PHONY: generate-code-from-proto
generate-code-from-proto: ## Generates code from proto files
cd proto/src/proto/hashdb/v1 && protoc --proto_path=. --proto_path=../../../../include --go_out=../../../../../merkletree/pb --go-grpc_out=../../../../../merkletree/pb --go_opt=paths=source_relative --go-grpc_opt=paths=source_relative hashdb.proto
cd proto/src/proto/hashdb/v1 && protoc --proto_path=. --proto_path=../../../../include --go_out=../../../../../merkletree/hashdb --go-grpc_out=../../../../../merkletree/hashdb --go_opt=paths=source_relative --go-grpc_opt=paths=source_relative hashdb.proto
cd proto/src/proto/executor/v1 && protoc --proto_path=. --go_out=../../../../../state/runtime/executor --go-grpc_out=../../../../../state/runtime/executor --go-grpc_opt=paths=source_relative --go_opt=paths=source_relative executor.proto
cd proto/src/proto/aggregator/v1 && protoc --proto_path=. --proto_path=../../../../include --go_out=../../../../../aggregator/pb --go-grpc_out=../../../../../aggregator/pb --go-grpc_opt=paths=source_relative --go_opt=paths=source_relative aggregator.proto
cd proto/src/proto/aggregator/v1 && protoc --proto_path=. --proto_path=../../../../include --go_out=../../../../../aggregator/prover --go-grpc_out=../../../../../aggregator/prover --go-grpc_opt=paths=source_relative --go_opt=paths=source_relative aggregator.proto

## Help display.
## Pulls comments from beside commands and prints a nicely formatted
Expand All @@ -132,4 +118,4 @@ generate-code-from-proto: ## Generates code from proto files
help: ## Prints this help
@grep -h -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) \
| sort \
| awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
| awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
Loading