-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
208 changed files
with
9,925 additions
and
5,243 deletions.
There are no files selected for viewing
File renamed without changes.
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
File renamed without changes.
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 |
---|---|---|
|
@@ -71,4 +71,4 @@ jobs: | |
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v3 | ||
with: | ||
version: v1.54 | ||
version: v1.60.1 |
File renamed without changes.
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 |
---|---|---|
|
@@ -10,4 +10,5 @@ gosec-report.json | |
gotest.out | ||
*.env | ||
report.xml | ||
broadcaster-cli.yaml | ||
coverage-report.html |
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
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 |
---|---|---|
|
@@ -14,14 +14,6 @@ deps: | |
build: | ||
go build ./... | ||
|
||
.PHONY: clean_e2e_tests | ||
clean_e2e_tests: | ||
# Remove containers and images; avoid failure if the image doesn't exist | ||
docker container stop test-tests-1 || true | ||
docker container stop test-arc-1 || true | ||
docker container rm test-tests-1 || true | ||
docker container rm test-arc-1 || true | ||
|
||
.PHONY: build_release | ||
build_release: | ||
mkdir -p build | ||
|
@@ -31,12 +23,19 @@ build_release: | |
build_docker: | ||
docker build . -t test-arc --build-arg="APP_COMMIT=$(APP_COMMIT)" --build-arg="APP_VERSION=$(APP_VERSION)" | ||
|
||
.PHONY: run | ||
run: | ||
docker compose -f test/docker-compose.yaml down --remove-orphans | ||
docker compose -f test/docker-compose.yaml up --abort-on-container-exit migrate-blocktx migrate-metamorph | ||
docker compose -f test/docker-compose.yaml up --build arc-blocktx arc-callbacker arc-metamorph arc | ||
docker compose -f test/docker-compose.yaml down | ||
|
||
.PHONY: run_e2e_tests | ||
run_e2e_tests: | ||
docker-compose -f test/docker-compose.yml down | ||
docker-compose -f test/docker-compose.yml up --abort-on-container-exit migrate-blocktx migrate-metamorph | ||
docker-compose -f test/docker-compose.yml up --exit-code-from tests tests arc-blocktx arc-metamorph arc --scale arc-blocktx=7 --scale arc-metamorph=2 | ||
docker-compose -f test/docker-compose.yml down | ||
docker compose -f test/docker-compose.yaml down --remove-orphans | ||
docker compose -f test/docker-compose.yaml up --abort-on-container-exit migrate-blocktx migrate-metamorph | ||
docker compose -f test/docker-compose.yaml up --build --exit-code-from tests tests arc-blocktx arc-callbacker arc-metamorph arc --scale arc-blocktx=4 --scale arc-metamorph=2 | ||
docker compose -f test/docker-compose.yaml down | ||
|
||
.PHONY: test | ||
test: | ||
|
@@ -48,7 +47,7 @@ install_lint: | |
|
||
.PHONY: lint | ||
lint: | ||
golangci-lint run --config=config/.golangci.yml -v ./... | ||
golangci-lint run --config=config/.golangci.yaml -v ./... | ||
staticcheck ./... | ||
|
||
.PHONY: gen_go | ||
|
@@ -73,10 +72,19 @@ gen: | |
--go-grpc_opt=paths=source_relative \ | ||
internal/blocktx/blocktx_api/blocktx_api.proto | ||
|
||
protoc \ | ||
--proto_path=. \ | ||
--go_out=. \ | ||
--go_opt=paths=source_relative \ | ||
--go-grpc_out=. \ | ||
--go-grpc_opt=paths=source_relative \ | ||
internal/callbacker/callbacker_api/callbacker_api.proto | ||
|
||
.PHONY: clean_gen | ||
clean_gen: | ||
rm -f ./pkg/metamorph/metamorph_api/*.pb.go | ||
rm -f ./pkg/blocktx/blocktx_api/*.pb.go | ||
rm -f ./internal/metamorph/metamorph_api/*.pb.go | ||
rm -f ./internal/blocktx/blocktx_api/*.pb.go | ||
rm -f ./internal/callbacker/callbacker_api/*.pb.go | ||
|
||
.PHONY: coverage | ||
coverage: | ||
|
@@ -105,7 +113,7 @@ install_gen: | |
go install google.golang.org/protobuf/cmd/[email protected] | ||
go install google.golang.org/grpc/cmd/[email protected] | ||
go install github.com/oapi-codegen/oapi-codegen/v2/cmd/[email protected] | ||
go install github.com/matryer/moq@v0.3.4 | ||
go install github.com/matryer/moq@v0.4.0 | ||
|
||
.PHONY: docs | ||
docs: | ||
|
@@ -116,13 +124,10 @@ gh-pages: | |
|
||
.PHONY: api | ||
api: | ||
oapi-codegen -config pkg/api/config.yaml pkg/api/arc.yml > pkg/api/arc.go | ||
oapi-codegen -config pkg/api/config.yaml pkg/api/arc.yaml > pkg/api/arc.go | ||
|
||
.PHONY: compare_config | ||
compare_config: | ||
rm -f ./config/dumped_config.yaml | ||
go run ./cmd/arc/main.go -dump_config "./config/dumped_config.yaml" && go run ./scripts/compare_yamls.go | ||
rm ./config/dumped_config.yaml | ||
|
||
.PHONY: clean_restart_e2e_test | ||
clean_restart_e2e_test: clean_e2e_tests build_docker run_e2e_tests |
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
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,17 +1,5 @@ | ||
# ROADMAP | ||
|
||
## Idempotent transactions | ||
|
||
The capability of ARC to respond with the full block information including block hash, block height and Merkle path in case that a transaction is submitted to it which has been mined previously, but which was not submitted to that instance of ARC. | ||
|
||
## Double spending detection | ||
|
||
Introduction of a new status indicating that a transaction is in an DOUBLE_SPENT_ATTEMPTED state. All competing transactions progress in that status until they either get REJECTED or MINED. Extension of webhooks to notify parties if the transaction state changes due to double spend attempts. | ||
|
||
## Multiple different callbacks per transaction | ||
|
||
Submitting a transaction multiple times with different callback URL and/or callback token will at this pair as subscription to status updates. Callbacks will henceforth be sent to each callback url with specified callback token. | ||
|
||
## Update of transactions in case of block reorgs | ||
|
||
ARC updates the statuses of transactions in case of block reorgs. Transactions which are not in the block of the longest chain will be updated to `UNKNOWN` status and re-broadcasted. Transactions which are included in the block of the longest chain are updated to `MINED` status. |
Oops, something went wrong.