Skip to content

Commit

Permalink
Create legacy wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
bennyhodl committed Jul 9, 2024
1 parent 28cd080 commit cbbee6a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3.4"
services:
### BITCOIND
bitcoind:
image: ruimarinho/bitcoin-core:0.20.0
image: kylemanna/bitcoind:latest
container_name: bitcoin-node
command: |
-conf=/config/default.conf
Expand Down
6 changes: 3 additions & 3 deletions scripts/create_wallets.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/bash

bitcoincli=$(command -v bitcoin-cli)
opts=( -rpcuser="testuser" -rpcpassword="lq6zequb-gYTdF2_ZEUtr8ywTXzLYtknzWU4nV8uVoo=" -regtest )
opts=( -rpcuser="testuser" -rpcpassword="lq6zequb-gYTdF2_ZEUtr8ywTXzLYtknzWU4nV8uVoo=" -regtest -named)

$bitcoincli "${opts[@]}" createwallet "alice" "false" "false"
$bitcoincli "${opts[@]}" createwallet "bob" "false" "false"
$bitcoincli "${opts[@]}" createwallet wallet_name="alice" descriptors="false"
$bitcoincli "${opts[@]}" createwallet wallet_name="bob" descriptors="false"

aliceAddress=$($bitcoincli "${opts[@]}" -rpcwallet=alice getnewaddress bec32)
$bitcoincli "${opts[@]}" generatetoaddress 101 ${aliceAddress} &> /dev/null
Expand Down

0 comments on commit cbbee6a

Please sign in to comment.