mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-11-19 09:25:33 +00:00
cd3ba4905a
- upgrades to bdk 0.24 #1198 - adds a regression test for opening older wallets #1183 - adds a migration for older wallets that encounter the ChecksumMismatch error #1182
28 lines
792 B
Bash
Executable File
28 lines
792 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -euxo pipefail
|
|
|
|
VERSION=0.11.1
|
|
|
|
mkdir bdk
|
|
stat ./target/debug/swap || exit 1
|
|
cp ./target/debug/swap bdk/swap-current
|
|
pushd bdk
|
|
|
|
echo "download swap $VERSION"
|
|
curl -L "https://github.com/comit-network/xmr-btc-swap/releases/download/${VERSION}/swap_${VERSION}_Linux_x86_64.tar" | tar xv
|
|
|
|
echo "create testnet wallet with $VERSION"
|
|
./swap --testnet --data-base-dir . --debug balance || exit 1
|
|
echo "check testnet wallet with this version"
|
|
./swap-current --testnet --data-base-dir . --debug balance || exit 1
|
|
|
|
echo "create mainnet wallet with $VERSION"
|
|
./swap --version || exit 1
|
|
./swap --data-base-dir . --debug balance || exit 1
|
|
echo "check mainnet wallet with this version"
|
|
./swap-current --version || exit 1
|
|
./swap-current --data-base-dir . --debug balance || exit 1
|
|
|
|
exit 0
|