Skip to content

Commit beaebde

Browse files
committed
chore: re-org and clean
1 parent 786a450 commit beaebde

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+25
-1281
lines changed

LICENSE

-21
This file was deleted.

README.md

+3-39
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
This repository aims to build a bitcoin test framework based on signet.
44
Docker is extensively used to provide:
55
* a bitcoin node that mines bitcoin on a custom signet
6-
* a bitcoin node that downloads the custom signet chain (can be used to test bitcoin layer-2 software)
7-
* a core-lightning node
86

97
### Preparation
108

@@ -21,22 +19,16 @@ sudo ufw default allow outgoing
2119
sudo ufw logging off
2220
sudo ufw enable
2321
```
24-
25-
After that, you need to allow connection on the 60602 port for make electrum server reachable from all over the internet:
26-
```
27-
sudo ufw allow 60602/tcp comment 'allow Electrum Signet SSL'
28-
```
29-
30-
### Usage
31-
3222
#### Miner
3323

3424
The system is thought to have a stand-alone machine on which the bitcoin miner node and core-clightning node run
3525

3626
```
37-
docker-compose -f docker-compose_miner_signet.yml up
27+
docker-compose -f miner_signet.yml up
3828
```
29+
3930
From the "miner" can be useful to retrieve, the bitcoin core, the electrum server, and the faucet addresses with the following commands:
31+
4032
```
4133
# Bitcoin Core Tor address
4234
echo "Bitcoin tor addr: $(docker exec btc_sig_miner cli getnetworkinfo | jq -r '.localaddresses[].address')"
@@ -50,31 +42,3 @@ echo "Electrum server tor addr: $(docker exec tor cat /var/lib/tor/hidden_servic
5042
# Bitcoin Faucet address
5143
echo "Bitcoin faucet tor addr: $(docker exec tor cat /var/lib/tor/hidden_service_faucet/hostname)"
5244
```
53-
in order to replace the default parameters in the `make-node.sh` file and make available the custom blockchain and faucet to other "node" clients that whant to connect with the "miner".
54-
55-
#### Node
56-
57-
Other machines that want to connect to the "miner", once the miner is running the parameters BITCOIN_MINER_URL, SIGNETCHALLENGE, and
58-
FAUCET_URL must be taken from the "miner" and provided to those who may want to run the "node". These parameters must be replaced in the `make-node.sh` file and it must be run with `source make-node.sh`. After, the "node" client can then run the docker compose command:
59-
60-
```
61-
docker-compose -f docker-compose_node_signet.yml up
62-
```
63-
64-
#### Electrum wallet
65-
66-
Once the "miner"/"node" is running, electrum wallet can be used to perform normal operations. Electrum must be lauched with `-signet` flag and must be connected to the custom electrum server.
67-
68-
```
69-
git clone https://github.com/spesmilo/electrum.git
70-
cd electrum
71-
python3 run_electrum --signet
72-
```
73-
At this point, create a new wallet and then go to `Tools --> Network`, de-select __Select server automatically__ flag and insert the onion address in the following format: `<electrum_server_onion_link>:60602`.
74-
Now, you can get a new address from the Electrum wallet and move some coin with
75-
```
76-
docker exec btc_sig_miner bitcoin-cli -datadir=/bitcoind send '{"<new-address>": 1}'
77-
```
78-
79-
#### Core-Lightning
80-
By running the `get-cln-strings.sh` make sure to run it after at least 100 blocks), strings to control the Core-Lightning node through [Zeus](https://github.com/ZeusLN/zeus) app and to share your node with other peers will be displayed. However, Zeus is not able to decode signet invoices, so peers cannot pay/receive any invoices. With some luck, one can use RTL which runs on http://localhost:3000

bitcoind_signet_node/Dockerfile

-52
This file was deleted.

bitcoind_signet_node/bashrc

-5
This file was deleted.

bitcoind_signet_node/bitcoind-download.sh

-38
This file was deleted.

bitcoind_signet_node/bitcoind-entrypoint.sh

-63
This file was deleted.

bitcoind_signet_node/bitcoind/bitcoin.conf

-33
This file was deleted.

bitcoind_signet_node/cli

-5
This file was deleted.

bitcoind_signet_node/fund-bitcoind.sh

-14
This file was deleted.

bitcoind_signet_node/logtail.sh

-6
This file was deleted.

c-lightning/Dockerfile

-64
This file was deleted.

0 commit comments

Comments
 (0)