Skip to content

Commit ecc9349

Browse files
committed
Use a venv for electrumx
1 parent f9b4ff0 commit ecc9349

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

ci/setup-coins/litecoin.sh

+6-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@ cd ~/coins/litecoin
1010
ltc_version="0.21.3" && curl https://download.litecoin.org/litecoin-"$ltc_version"/linux/litecoin-"$ltc_version"-x86_64-linux-gnu.tar.gz | tar -xzf -
1111
mv litecoin-"$ltc_version" litecoin-node
1212

13+
python3 -m pip install virtualenv
14+
1315
git clone --depth 1 'https://github.com/spesmilo/electrumx'
1416
pushd electrumx
15-
python3 -m pip install -e .
17+
virtualenv venv
18+
./venv/python3 -m pip install -e .
1619
popd
1720

1821
git clone --depth 1 'https://github.com/pooler/electrum-ltc'
@@ -23,7 +26,7 @@ popd
2326
./litecoin-node/bin/litecoind -regtest -daemon -server=1 -txindex=1 -prune=0 -rpcport=19443 -rpcuser=ci -rpcpassword=password
2427

2528
mkdir -p ~/electrumx/db
26-
COIN=Litecoin DB_DIRECTORY="~/electrumx/db" DAEMON_URL="ci:[email protected]:19443" SERVICES="tcp://127.0.0.1:5000" PEER_DISCOVERY=self ./electrumx/electrumx_server &
29+
COIN=Litecoin DB_DIRECTORY="~/electrumx/db" DAEMON_URL="ci:[email protected]:19443" SERVICES="tcp://127.0.0.1:5000" PEER_DISCOVERY=self ./electrumx/venv/python3 ./electrumx/electrumx_server &
2730
./electrum-ltc/run_electrum --offline setconfig rpcport 3000
2831
./electrum-ltc/run_electrum --offline setconfig rpcuser ci
2932
./electrum-ltc/run_electrum --offline setconfig rpcpassword password
@@ -32,7 +35,7 @@ COIN=Litecoin DB_DIRECTORY="~/electrumx/db" DAEMON_URL="ci:[email protected]:19
3235
./electrum-ltc/run_electrum load_wallet
3336

3437
address="$(./electrum-ltc/run_electrum getunusedaddress)"
35-
./litecoin-node/bin/litecoin-cli -regtest -rpcuser=ci -rpcpassword=password generatetoaddress 110 "$address"
38+
./litecoin-node/bin/litecoin-cli --rpcport=19443 -rpcuser=ci -rpcpassword=password generatetoaddress 110 "$address"
3639

3740
destination="$(./electrum-ltc/run_electrum getunusedaddress)"
3841
refund="$(./electrum-ltc/run_electrum getunusedaddress)"

0 commit comments

Comments
 (0)