You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you wish to run a node that writes DID operations to the Bitcoin blockchain, you will need to open ports `4002` and `4003` so that the transaction files (Anchor and Batch files) can be served to others via IPFS.
40
40
41
-
## 2. Setting up Bcoin
41
+
## 2. Setting up Bitcoin Core
42
42
43
-
An ION node needs a trusted Bitcoin peer for fetching and writing ION transactions, we use Bcoin for this.
43
+
An ION node needs a trusted Bitcoin peer for fetching and writing ION transactions. We use Bitcoin Core for this.
44
44
45
-
### Automated script for installing Bcoin
45
+
### Automated script for installing Bitcoin Core
46
46
47
-
If you would like to install and start Bcoin automatically, you can review and run the automated script commited in the [Sidetree repo](https://github.com/decentralized-identity/sidetree/blob/master/lib/bitcoin/setup.sh).
47
+
If you would like to install and start Bitcoin Core automatically, you can review and run the automated script commited in the [Sidetree repo](https://github.com/decentralized-identity/sidetree/blob/master/lib/bitcoin/setup.sh).
48
48
49
49
> NOTE: Initial synchronization takes ~6 hours on testnet.
50
50
51
-
### Installing Bcoin Manually
51
+
### Installing Bitcoin Core Manually
52
52
53
-
Node-gyp is required by Bcoin (the currently used bitcoin miner) and requires `make` and a c++ compiler as well as Python 2.7. You can install these by:
54
-
```
55
-
sudo apt-get install gcc g++ make
56
-
sudo apt-get install -y python
57
-
```
58
-
59
-
Clone the Bcoin repo:
60
-
```
61
-
git clone git://github.com/bcoin-org/bcoin.git
62
-
```
63
-
64
-
Install the Bcoin dependencies:
65
-
```
66
-
cd bcoin
67
-
npm install
68
-
```
53
+
You can find binaries for Bitcoin Core releases [here.](https://bitcoincore.org/en/releases/)
69
54
70
-
Create a Bcoin configuration file (`bcoin.conf`) designating the path you would like the Bitcoin data to be stored in (`[DATA DIRECTORY PATH]`):
55
+
Create a configuration file (`bitcoin.conf`) designating the path you would like the Bitcoin data to be stored in (`[datadir]`):
71
56
```yaml
72
-
network: testnet
73
-
prefix: [DATA DIRECTORY PATH]
74
-
host: 127.0.0.1
75
-
port: 18332
76
-
http-port: 18331
77
-
workers-size: 1
78
-
index-address: true
57
+
testnet=1
58
+
server=1
59
+
datadir=~/.bitcoin
60
+
rpcuser=admin
61
+
rpcpassword=<yourRand0mP4SSword>
79
62
```
80
63
81
-
Start Bcoin and let it sync with Testnet:
64
+
Start Bitcoin Core and let it sync with Testnet:
82
65
```
83
-
./bin/bcoin --config bcoin.conf
66
+
./bin/bitcoind --config bitcoin.conf
84
67
```
85
-
> You can add `--daemon` to run Bcoin as a daemon process.
68
+
> You can add `--daemon` to run bitcoind as a daemon process.
0 commit comments