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 10, 2024
1 parent 23d7551 commit b449eaf
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ Cargo.lock
**/*.profraw
/coverage/
/integration_coverage/
.idea
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: polarlightning/bitcoind:27.0
container_name: bitcoin-node
command: |
-conf=/config/default.conf
Expand Down
2 changes: 1 addition & 1 deletion sample/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Example configurations and contract input are available in the [examples](./exam
In order to use the [example contract](./examples/contracts/numerical_contract_input.json) you will need to update the `event_id`.
Replace the part after `btcusd` with a UNIX timestamp in the future.

Use the [helper script](../scripts/gen-sample-offer.sh) to create update the example contract 1 hour in the future. This replaces the `event_id` after `btcusd` with a UNIX timestamp 1 hour in the futre. Manually update the value for a longer time period.
Use the [helper script](../scripts/gen-sample-offer.sh) to create the example contract 1 hour in the future. This creates an `event_id` with a UNIX timestamp 1 hour in the future. Manually update the value for a longer time period.


## Quick run
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
2 changes: 2 additions & 0 deletions testconfig/config/default.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
deprecatedrpc=create_bdb

[regtest]
rpcallowip=0.0.0.0/0
rpcbind=0.0.0.0
Expand Down

0 comments on commit b449eaf

Please sign in to comment.