diff options
Diffstat (limited to 'tools/sp-test.js')
| -rw-r--r-- | tools/sp-test.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/sp-test.js b/tools/sp-test.js index d602d0f..b55ec29 100644 --- a/tools/sp-test.js +++ b/tools/sp-test.js @@ -19,7 +19,7 @@ import { wordlist } from '@scure/bip39/wordlists/english'; const PORT = 5199; const APP = `http://localhost:${PORT}`; -const BCLI = `bitcoin-cli -regtest -datadir=${process.env.HOME}/ark-regtest/bitcoind -rpcport=18543 -rpcwallet=miner`; +const BCLI = `docker exec bc bitcoin-cli -rpcwallet=coinos`; const sleep = (ms) => new Promise((r) => setTimeout(r, ms)); const sh = (cmd) => execSync(cmd, { shell: '/bin/bash' }).toString().trim(); const mine = (n = 1) => sh(`${BCLI} generatetoaddress ${n} $(${BCLI} getnewaddress) >/dev/null`); |
