Skip to content

Instantly share code, notes, and snippets.

@gre
Created Jan 18, 2020
Embed
What would you like to do?
#!/bin/bash
cd $(dirname $0)
./genOne.sh sync_Vertcoin Vertcoin
./genOne.sh sync_Dash Dash
./genOne.sh sync_Stakenet Stakenet
./genOne.sh sync_Viacoin Viacoin
./genOne.sh sync_PivX PivX
./genOne.sh sync_Komodo Komodo
./genOne.sh sync_Stratis Stratis
./genOne.sh sync_Digibyte Digibyte
./genOne.sh sync_BitcoinCash Bitcoin_Cash
./genOne.sh sync_ZCash ZCash
./genOne.sh sync_XRP_js XRP
./genOne.sh sync_BitcoinGold Bitcoin_Gold
./genOne.sh sync_BitcoinTestnet Bitcoin_Testnet
./genOne.sh sync_Horizen Horizen
./genOne.sh sync_Bitcoin Bitcoin
./genOne.sh sync_Litecoin Litecoin
./genOne.sh sync_Ethereum Ethereum
./genOne.sh sync_Peercoin Peercoin
./genOne.sh sync_Dogecoin Dogecoin
./genOne.sh Sync_Decred Decred
./genOne.sh sync_EthereumClassic Ethereum_Classic
./genOne.sh sync_Stealth Stealth
./genOne.sh sync_Qtum Qtum
#!/bin/bash
name=$1
coin=$2
out=../../../test_gen_out/$coin.js
set -e
cd $(dirname $0)/../tests/$name
# cleanup
curl -XPOST http://localhost:8435/end 2> /dev/null || true
rm -rf dbdata
# proxy
ledger-live proxy --auto-skip -f apdu.snapshot.log &
PID=$!
# generator
export DISABLE_TRANSACTION_BROADCAST=1
export DEVICE_PROXY_URL=ws://localhost:8435
ledger-live generateTestScanAccounts -c $coin > $out
kill -9 $PID
wait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment