Skip to content

Commit e08f7b3

Browse files
jloppthehenrytsai
authored andcommitted
Switch ION node install instructions from BCoin to Bitcoin Core.
1 parent 990097d commit e08f7b3

File tree

1 file changed

+15
-32
lines changed

1 file changed

+15
-32
lines changed

install-guide.md

Lines changed: 15 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -38,51 +38,34 @@ sudo snap install node --classic --channel=10
3838

3939
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.
4040

41-
## 2. Setting up Bcoin
41+
## 2. Setting up Bitcoin Core
4242

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.
4444

45-
### Automated script for installing Bcoin
45+
### Automated script for installing Bitcoin Core
4646

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).
4848

4949
> NOTE: Initial synchronization takes ~6 hours on testnet.
5050
51-
### Installing Bcoin Manually
51+
### Installing Bitcoin Core Manually
5252

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/)
6954

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]`):
7156
```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>
7962
```
8063

81-
Start Bcoin and let it sync with Testnet:
64+
Start Bitcoin Core and let it sync with Testnet:
8265
```
83-
./bin/bcoin --config bcoin.conf
66+
./bin/bitcoind --config bitcoin.conf
8467
```
85-
> You can add `--daemon` to run Bcoin as a daemon process.
68+
> You can add `--daemon` to run bitcoind as a daemon process.
8669
8770
## 3. Setting up MongoDB
8871

0 commit comments

Comments
 (0)