From acc3702c5099c62e6b12eb3dbdde6d62eec448e1 Mon Sep 17 00:00:00 2001 From: nahuhh <50635951+nahuhh@users.noreply.github.com> Date: Mon, 16 Sep 2024 18:38:10 +0000 Subject: [PATCH] fix restore from seed --- bsx/setup.sh | 8 ++------ bsx/update.sh | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/bsx/setup.sh b/bsx/setup.sh index b3ba1b7..f1e989f 100755 --- a/bsx/setup.sh +++ b/bsx/setup.sh @@ -42,17 +42,13 @@ enable_tor() { if [[ "$particl_mnemonic" && "$monerod_addr" ]]; then # Restore seed PARTICL_MNEMONIC=$particl_mnemonic - basicswap-prepare --datadir=$SWAP_DATADIR --particl_mnemonic="$PARTICL_MNEMONIC" - # Add coins and use a remote monero node XMR_RPC_HOST=$monerod_addr BASE_XMR_RPC_PORT=$monerod_port \ - basicswap-prepare --datadir=$SWAP_DATADIR --addcoin=monero,wownero --xmrrestoreheight=$CURRENT_XMR_HEIGHT --wowrestoreheight=600000 + basicswap-prepare --datadir=$SWAP_DATADIR --withcoins=monero,wownero --xmrrestoreheight=$CURRENT_XMR_HEIGHT --wowrestoreheight=600000 --particl_mnemonic="$PARTICL_MNEMONIC" enable_tor elif [[ "$particl_mnemonic" ]]; then # Restore seed PARTICL_MNEMONIC=$particl_mnemonic - basicswap-prepare --datadir=$SWAP_DATADIR --particl_mnemonic="$PARTICL_MNEMONIC" - # Add coins using local nodes - basicswap-prepare --datadir=$SWAP_DATADIR --addcoin=monero,wownero --xmrrestoreheight=$CURRENT_XMR_HEIGHT --wowrestoreheight=600000 + basicswap-prepare --datadir=$SWAP_DATADIR --withcoins=monero,wownero --xmrrestoreheight=$CURRENT_XMR_HEIGHT --wowrestoreheight=600000 --particl_mnemonic="$PARTICL_MNEMONIC" enable_tor elif [[ "$monerod_addr" ]]; then # Setup new install and use a remote monero node diff --git a/bsx/update.sh b/bsx/update.sh index 2cd07d4..89fd33e 100755 --- a/bsx/update.sh +++ b/bsx/update.sh @@ -3,7 +3,7 @@ cd $SWAP_DATADIR/basicswap # Download updated scripts echo "Updating basicswap-bash scripts" && sleep 1 -git clone https://github.com/nahuhh/basicswap-bash -b dev +git clone https://github.com/nahuhh/basicswap-bash cd basicswap-bash # Move scripts