-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathrun_zingo_dumps.sh
More file actions
executable file
·42 lines (34 loc) · 1 KB
/
run_zingo_dumps.sh
File metadata and controls
executable file
·42 lines (34 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "${SCRIPT_DIR}"
SRC="tests/fixtures/zingo"
TARGET="dumps/zingo"
run_dump() {
local wallet=$1
local input="${SRC}/${wallet}.dat"
local output="${TARGET}/${wallet}.txt"
mkdir -p "$(dirname "${output}")"
echo "Dumping ${input} -> ${output}"
cargo run --quiet --features zingo -- --from zingo --to dump "${input}" "${output}"
}
wallets=(
"regtest/aaaaaaaaaaaaaaaaaaaaaaaa-v26"
"mainnet/hhcclaltpcckcsslpcnetblr-gf0aaf9347"
"mainnet/hhcclaltpcckcsslpcnetblr-latest"
# "mainnet/vtfcorfbcbpctcfupmegmwbp-v28" # large
"regtest/aadaalacaadaalacaadaalac-orch-and-sapling"
"regtest/aadaalacaadaalacaadaalac-orch-only"
"regtest/hmvasmuvwmssvichcarbpoct-v27"
"testnet/G93738061a"
"testnet/Gab72a38b"
"testnet/cbbhrwiilgbrababsshsmtpr-latest"
"testnet/glory_goddess"
"testnet/latest"
"testnet/v26"
# "testnet/v27" # large
"testnet/v28"
)
for wallet in "${wallets[@]}"; do
run_dump "${wallet}"
done