-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add disable-l1-verification flag and update descriptions
- Loading branch information
1 parent
d9dcf6c
commit 93803e9
Showing
1 changed file
with
38 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
.DEFAULT_GOAL := help | ||
|
||
.PHONY: vm | ||
.PHONY: vm juno | ||
|
||
ifeq ($(VM_DEBUG),true) | ||
GO_TAGS = -tags vm_debug | ||
|
@@ -33,11 +33,11 @@ MAKEFLAGS += -j$(NPROCS) | |
|
||
rustdeps: check-rust vm core-rust compiler | ||
|
||
juno: rustdeps ## compile | ||
juno: rustdeps ## Compile Juno | ||
@mkdir -p build | ||
@go build $(GO_TAGS) -a -ldflags="-X main.Version=$(shell git describe --tags)" -o build/juno ./cmd/juno/ | ||
|
||
juno-cached: | ||
juno-cached: ## Cached Juno compilation | ||
@mkdir -p build | ||
@go build $(GO_TAGS) -ldflags="-X main.Version=$(shell git describe --tags)" -o build/juno ./cmd/juno/ | ||
|
||
|
@@ -57,31 +57,31 @@ core-rust: | |
compiler: | ||
$(MAKE) -C starknet/compiler/rust $(VM_TARGET) | ||
|
||
generate: ## generate | ||
generate: ## Generate mocks and code | ||
mkdir -p mocks | ||
go generate ./... | ||
|
||
clean-testcache: | ||
clean-testcache: ## Clean Go test cache | ||
go clean -testcache | ||
|
||
test: clean-testcache rustdeps ## tests | ||
test: clean-testcache rustdeps ## Run tests | ||
go test $(GO_TAGS) ./... | ||
|
||
test-cached: rustdeps ## tests with existing cache | ||
test-cached: rustdeps ## Run cached tests | ||
go test $(GO_TAGS) ./... | ||
|
||
test-race: clean-testcache rustdeps | ||
test-race: clean-testcache rustdeps ## Run tests with race detection | ||
go test $(GO_TAGS) ./... -race $(TEST_RACE_LDFLAGS) | ||
|
||
benchmarks: rustdeps ## benchmarking | ||
benchmarks: rustdeps ## Run benchmarks | ||
go test $(GO_TAGS) ./... -run=^# -bench=. -benchmem | ||
|
||
test-cover: clean-testcache rustdeps ## tests with coverage | ||
test-cover: clean-testcache rustdeps ## Run tests with coverage | ||
mkdir -p coverage | ||
go test $(GO_TAGS) -coverpkg=./... -coverprofile=coverage/coverage.out -covermode=atomic ./... | ||
go tool cover -html=coverage/coverage.out -o coverage/coverage.html | ||
|
||
install-deps: | install-gofumpt install-mockgen install-golangci-lint check-rust ## install some project dependencies | ||
install-deps: install-gofumpt install-mockgen install-golangci-lint check-rust ## Install dependencies | ||
|
||
install-gofumpt: | ||
go install mvdan.cc/gofumpt@latest | ||
|
@@ -92,28 +92,28 @@ install-mockgen: | |
install-golangci-lint: | ||
@which golangci-lint || go install github.com/golangci/golangci-lint/cmd/[email protected] | ||
|
||
lint: install-golangci-lint | ||
lint: install-golangci-lint ## Run linter | ||
golangci-lint run | ||
|
||
tidy: ## add missing and remove unused modules | ||
go mod tidy | ||
tidy: ## Add missing and remove unused modules | ||
go mod tidy | ||
|
||
format: ## run go & rust formatters | ||
format: ## Format Go and Rust code | ||
$(MAKE) -C vm/rust format | ||
$(MAKE) -C core/rust format | ||
$(MAKE) -C starknet/compiler/rust format | ||
gofumpt -l -w . | ||
|
||
clean: ## clean project builds | ||
clean: ## Clean project builds | ||
$(MAKE) -C vm/rust clean | ||
$(MAKE) -C core/rust clean | ||
$(MAKE) -C starknet/compiler/rust clean | ||
@rm -rf ./build | ||
|
||
help: ## show this help | ||
help: ## Show help | ||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | ||
|
||
feedernode: juno-cached | ||
feedernode: juno-cached ## Run a feedernode. P2P usage only | ||
./build/juno \ | ||
--network=sepolia \ | ||
--log-level=debug \ | ||
|
@@ -123,7 +123,7 @@ feedernode: juno-cached | |
--p2p-addr=/ip4/0.0.0.0/tcp/7777 \ | ||
--p2p-private-key="5f6cdc3aebcc74af494df054876100368ef6126e3a33fa65b90c765b381ffc37a0a63bbeeefab0740f24a6a38dabb513b9233254ad0020c721c23e69bc820089" \ | ||
|
||
node1: juno-cached | ||
node1: juno-cached ## Run a node №1. P2P usage only | ||
./build/juno \ | ||
--network=sepolia \ | ||
--log-level=debug \ | ||
|
@@ -133,39 +133,43 @@ node1: juno-cached | |
--p2p-peers=/ip4/127.0.0.1/tcp/7777/p2p/12D3KooWLdURCjbp1D7hkXWk6ZVfcMDPtsNnPHuxoTcWXFtvrxGG \ | ||
--p2p-addr=/ip4/0.0.0.0/tcp/7778 \ | ||
--p2p-private-key="8aeffc26c3c371565dbe634c5248ae26f4fa5c33bc8f7328ac95e73fb94eaf263550f02449521f7cf64af17d248c5f170be46c06986a29803124c0819cb8fac3" \ | ||
--metrics-port=9091 | ||
--metrics-port=9091 \ | ||
--disable-l1-verification | ||
|
||
# --p2p-peers=/ip4/127.0.0.1/tcp/7778/p2p/12D3KooWDQVMmK6cQrfFcWUoFF8Ch5vYegfwiP5Do2SFC2NAXeBk \ | ||
node2: | ||
node2: juno-cached ## Run a node №2. P2P usage only | ||
./build/juno \ | ||
--network=sepolia \ | ||
--log-level=debug \ | ||
--db-path=./p2p-dbs/node2 \ | ||
--p2p \ | ||
--p2p-peers=/ip4/127.0.0.1/tcp/7777/p2p/12D3KooWLdURCjbp1D7hkXWk6ZVfcMDPtsNnPHuxoTcWXFtvrxGG \ | ||
--p2p-private-key="2d87e1d1c9d8dda1cf9a662de1978d2cd0b96e6ba390c75ded87c6c4fab657057fa782ae5977c3bd02d58281dccd16f2c26990d1f6c22f818a84edac97957348" \ | ||
--metrics-port=9092 | ||
--metrics-port=9092 \ | ||
--disable-l1-verification | ||
|
||
node3: | ||
node3: juno-cached ## Run a node №3. P2P usage only | ||
./build/juno \ | ||
--network=sepolia \ | ||
--log-level=debug \ | ||
--db-path=./p2p-dbs/node3 \ | ||
--p2p \ | ||
--p2p-peers=/ip4/127.0.0.1/tcp/7777/p2p/12D3KooWLdURCjbp1D7hkXWk6ZVfcMDPtsNnPHuxoTcWXFtvrxGG \ | ||
--p2p-private-key="54a695e2a5d5717d5ba8730efcafe6f17251a1955733cffc55a4085fbf7f5d2c1b4009314092069ef7ca9b364ce3eb3072531c64dfb2799c6bad76720a5bdff0" \ | ||
--metrics-port=9093 | ||
--metrics-port=9093 \ | ||
--disable-l1-verification | ||
|
||
pathfinder: juno-cached | ||
pathfinder: juno-cached ## Run a node to sync from pathfinder feedernode. P2P usage only | ||
./build/juno \ | ||
--network=sepolia \ | ||
--log-level=debug \ | ||
--db-path=./p2p-dbs/node-pathfinder \ | ||
--p2p \ | ||
--p2p-peers=/ip4/127.0.0.1/tcp/8888/p2p/12D3KooWF1JrZWQoBiBSjsFSuLbDiDvqcmJQRLaFQLmpVkHA9duk \ | ||
--p2p-private-key="54a695e2a5d5717d5ba8730efcafe6f17251a1955733cffc55a4085fbf7f5d2c1b4009314092069ef7ca9b364ce3eb3072531c64dfb2799c6bad76720a5bdff0" \ | ||
--metrics-port=9094 | ||
|
||
test-fuzz: ## run fuzzing script | ||
--network=sepolia \ | ||
--log-level=debug \ | ||
--db-path=./p2p-dbs/node-pathfinder \ | ||
--p2p \ | ||
--p2p-peers=/ip4/127.0.0.1/tcp/8888/p2p/12D3KooWF1JrZWQoBiBSjsFSuLbDiDvqcmJQRLaFQLmpVkHA9duk \ | ||
--p2p-private-key="54a695e2a5d5717d5ba8730efcafe6f17251a1955733cffc55a4085fbf7f5d2c1b4009314092069ef7ca9b364ce3eb3072531c64dfb2799c6bad76720a5bdff0" \ | ||
--metrics-port=9094 \ | ||
--disable-l1-verification | ||
|
||
test-fuzz: ## Run fuzzing script | ||
./scripts/fuzz_all.sh |