mirror of
https://github.com/aljazceru/ark.git
synced 2026-02-07 04:24:43 +01:00
Add tests for adversarial scenarios (#300)
* fix and test cheating scenario (malicious double spend) * test and fix async vtxo cheating cases * add replace statement in go.mod * Update server/internal/core/application/covenantless.go Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com> Signed-off-by: Louis Singer <41042567+louisinger@users.noreply.github.com> * Update server/internal/infrastructure/wallet/btc-embedded/psbt.go Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com> Signed-off-by: Louis Singer <41042567+louisinger@users.noreply.github.com> * Update server/test/e2e/covenant/e2e_test.go Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com> Signed-off-by: Louis Singer <41042567+louisinger@users.noreply.github.com> * Update server/test/e2e/covenantless/e2e_test.go Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com> Signed-off-by: Louis Singer <41042567+louisinger@users.noreply.github.com> * Update server/test/e2e/covenantless/e2e_test.go Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com> Signed-off-by: Louis Singer <41042567+louisinger@users.noreply.github.com> * remove unused * [btc-embedded] fix GetNotificationChannel * [tx-builder] fix redeem transaction fee estimator * close grpc client in tests * [application] rework listentoscannerNotification * [application][covenant] fix getConnectorAmount * [tx-builder][covenant] get connector amount from wallet * e2e test sleep time * [liquid-standalone] ListConnectorUtxos: filter by script client side * fix Makefile integrationtest * do not use cache in integration tests * use VtxoKey as argument of findForfeitTxBitcoin * wrap adversarial test in t.Run * increaste test timeout * CI: setup go 1.23.1 * CI: revert go version * add replace in server/go.mod * Update server/internal/core/application/covenant.go Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com> Signed-off-by: Louis Singer <41042567+louisinger@users.noreply.github.com> * remove replace * readd replace statement * fixes * go work sync * fix CI --------- Signed-off-by: Louis Singer <41042567+louisinger@users.noreply.github.com> Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com>
This commit is contained in:
4
.github/workflows/ark.artifacts.yaml
vendored
4
.github/workflows/ark.artifacts.yaml
vendored
@@ -12,9 +12,9 @@ jobs:
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v2
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: 1.21.0
|
||||
go-version: 1.23.1
|
||||
|
||||
- name: Build binaries
|
||||
run: make build-all
|
||||
|
||||
12
.github/workflows/ark.integration.yaml
vendored
12
.github/workflows/ark.integration.yaml
vendored
@@ -2,7 +2,8 @@ name: ci_integration
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
@@ -15,11 +16,12 @@ jobs:
|
||||
run:
|
||||
working-directory: ./server
|
||||
steps:
|
||||
- uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: ">1.17.2"
|
||||
- uses: actions/checkout@v3
|
||||
- run: go get -v -t -d ./...
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '>=1.23.1'
|
||||
- name: Run go work sync
|
||||
run: go work sync
|
||||
|
||||
- name: Run Nigiri
|
||||
uses: vulpemventures/nigiri-github-action@v1
|
||||
|
||||
4
.github/workflows/ark.release.yaml
vendored
4
.github/workflows/ark.release.yaml
vendored
@@ -16,9 +16,9 @@ jobs:
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v2
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: 1.21.0
|
||||
go-version: 1.23.1
|
||||
|
||||
# Build binaries for all architectures
|
||||
- name: Build binaries
|
||||
|
||||
8
.github/workflows/ark.unit.yaml
vendored
8
.github/workflows/ark.unit.yaml
vendored
@@ -2,10 +2,11 @@ name: ci_unit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- 'server/**'
|
||||
- 'pkg/client-sdk/**'
|
||||
branches: [master]
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
@@ -56,7 +57,8 @@ jobs:
|
||||
uses: securego/gosec@master
|
||||
with:
|
||||
args: '-severity high -quiet -exclude=G115 ./...'
|
||||
- run: go get -v -t -d ./...
|
||||
- name: Run go work sync
|
||||
run: go work sync
|
||||
- name: unit testing
|
||||
run: make test
|
||||
|
||||
@@ -83,4 +85,4 @@ jobs:
|
||||
args: '-severity high -quiet -exclude=G115 ./...'
|
||||
- run: go get -v -t -d ./...
|
||||
- name: unit testing
|
||||
run: make test
|
||||
run: make test
|
||||
Reference in New Issue
Block a user