From fd4eb9c034ab6f307834b54c69412183e763c87a Mon Sep 17 00:00:00 2001 From: nahuhh <50635951+nahuhh@users.noreply.github.com> Date: Thu, 3 Oct 2024 03:30:32 +0000 Subject: [PATCH] friendly update coincurve --- bsx/update.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/bsx/update.sh b/bsx/update.sh index 2c4b1f1..356a2dd 100755 --- a/bsx/update.sh +++ b/bsx/update.sh @@ -1,4 +1,5 @@ #!/bin/bash +COINCURVE=0.2 cd $SWAP_DATADIR/basicswap # Download updated scripts @@ -17,6 +18,18 @@ echo "Updating BasicSwapDEX" && sleep 1 # Delete dangling build folder. Same as --no-cache for docker rm -rf $SWAP_DATADIR/basicswap/build +# Coincurve +cd $SWAP_DATADIR +if [[ -d coincurve-basicswap ]]; then + cd coincurve-basicswap + git pull + git checkout basicswap_v$COINCURVE +else + git clone https://github.com/basicswap/coincurve -b basicswap_v$COINCURVE coincurve-basicswap && cd $_ +fi +$SWAP_DATADIR/venv/bin/pip install . + +# BasicSwap # Switch to new repo: basicswap/basicswap cd $SWAP_DATADIR/basicswap git remote set-url origin https://github.com/basicswap/basicswap