Skip to content

Commit 0df502a

Browse files
committed
Migrate create, restore, and receive to bdk (#4231)
1 parent afc1295 commit 0df502a

23 files changed

+931
-1031
lines changed

.github/workflows/ci.yaml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ on:
55
branches:
66
- master
77
pull_request:
8-
branches:
9-
- master
108

119
defaults:
1210
run:
@@ -94,6 +92,14 @@ jobs:
9492
sudo apt-get install ripgrep
9593
./bin/forbid
9694
95+
- name: Check for blacklist
96+
if: ${{ github.event.pull_request.base.ref == 'master' }}
97+
run: |
98+
if [[ -f blacklist.txt ]]; then
99+
echo "error: found blacklist.txt"
100+
exit 1
101+
fi
102+
97103
test:
98104
strategy:
99105
matrix:
@@ -116,4 +122,9 @@ jobs:
116122
- uses: Swatinem/rust-cache@v2
117123

118124
- name: Test
125+
if: ${{ github.event.pull_request.base.ref == 'master' }}
119126
run: cargo test --all
127+
128+
- name: Test
129+
if: ${{ github.event.pull_request.base.ref == 'bdk' }}
130+
run: ./bin/test

Cargo.lock

Lines changed: 68 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ anyhow = { version = "1.0.90", features = ["backtrace"] }
4747
axum = { version = "0.8.1", features = ["http2"] }
4848
axum-server = "0.7.1"
4949
base64.workspace = true
50+
bdk_wallet = "1.1.0"
5051
bip322 = "0.0.9"
5152
bip39 = "2.0.0"
5253
bitcoin.workspace = true

bin/test

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env python3
2+
3+
import shutil, subprocess, sys
4+
5+
test = 'ltest' if shutil.which('cargo-ltest') else 'test'
6+
7+
with open('blacklist.txt') as f:
8+
blacklist = f.read().splitlines()
9+
10+
command = ['cargo', test, '--', '--exact']
11+
12+
for test in blacklist:
13+
command.append('--skip')
14+
command.append(test)
15+
16+
sys.exit(subprocess.run(command).returncode)

0 commit comments

Comments
 (0)