Skip to content

Commit 9472833

Browse files
committed
Merge pull request #713 from braydonf/docs
Docs formatting and consistency
2 parents c1f5975 + 38efc1a commit 9472833

19 files changed

+263
-166
lines changed

CHANGELOG.md

+21-21
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Bcoin Release Notes & Changelog
1+
# Bcoin release notes & changelog
22

33
## v2.0.0
44

@@ -136,7 +136,7 @@ prefix directory. For example `--prefix ~/.bcoin_whatever --network testnet`
136136
will create a directory structure of `~/.bcoin_whatever/testnet/` instead of
137137
`~/.bcoin_whatever`. Please update your directory structure accordingly.
138138

139-
### Configuration Changes
139+
### Configuration changes
140140

141141
Wallet and Node are now separated and use different persistent configuration files.
142142
Some configuration options have moved to `wallet.conf`, which is stored in the prefix
@@ -168,14 +168,14 @@ Example using CLI options:
168168
Example using ENV:
169169
`BCOIN_NETWORK=simnet BCOIN_HTTP_HOST=0.0.0.0 BCOIN_WALLET_HTTP_HOST=0.0.0.0 BCOIN_WALLET_API_KEY=hunter2 BCOIN_WALLET_WALLET_AUTH=true ./bin/node`
170170

171-
### Bcoin Client Changes
171+
### Bcoin client changes
172172

173173
The `bcoin cli` interface has been deprecated and is now replaced with a
174174
separate tool: `bcoin-cli`. `bcoin wallet` has also been deprecated and is
175175
replaced with `bwallet-cli`. Both `bcoin-cli` and `bwallet-cli` can be
176176
installed with the `bclient` package in npm.
177177

178-
### Wallet API Changes
178+
### Wallet API changes
179179

180180
The main wallet API changes have to do with changes in the structure of the
181181
HTTP server itself. The bcoin wallet HTTP server will now always listen on it's
@@ -206,7 +206,7 @@ example, `GET /backup?token=xxx...`. It also allows access to any wallet on the
206206
HTTP or websocket layer (websockets who use the admin token can join a wallet
207207
of `*`, which notifies them of events on _all_ wallets).
208208

209-
### Notable Changes
209+
### Notable changes
210210

211211
- __wallet/http__ - A `conflict` event will be correctly emitted for _all_
212212
double spends.
@@ -227,18 +227,18 @@ of `*`, which notifies them of events on _all_ wallets).
227227

228228
## v1.0.0-beta.15
229229

230-
### Notable Changes
230+
### Notable changes
231231

232232
## v1.0.0-beta.14
233233

234-
### Notable Changes
234+
### Notable changes
235235

236236
- __pkg__ - Ignored `bcoin*` files in npmignore have been removed. This fixes
237237
the npm install.
238238

239239
## v1.0.0-beta.13
240240

241-
### Notable Changes
241+
### Notable changes
242242

243243
- __config__ - Options using megabyte units are now calculated properly again
244244
(6182df044228f9215938e7d314435f3f2640acca,
@@ -356,22 +356,22 @@ Becomes this:
356356

357357
## v1.0.0-beta.12
358358

359-
### Notable Changes
359+
### Notable changes
360360

361361
- __networks__ - Fixed simnet wpkh prefix.
362362
- __http__ - `wallet join` without wallet auth has been fixed for responses.
363363
This was causing a hanging issue with the client.
364364

365365
## v1.0.0-beta.11
366366

367-
### Notable Changes
367+
### Notable changes
368368

369369
- __networks__ - Simnet params have been fixed.
370370
- __cli__ - Chain reset call has been fixed.
371371

372372
## v1.0.0-beta.10
373373

374-
### Notable Changes
374+
### Notable changes
375375

376376
- __wallet/http__ - Create wallet route modified
377377
(`POST /wallet/:id?` changed to `PUT /wallet/:id`).
@@ -407,7 +407,7 @@ Becomes this:
407407

408408
## v1.0.0-beta.9
409409

410-
### Notable Changes
410+
### Notable changes
411411

412412
- __mempool__ - Trimming now removes dependency chains by cumulative fee rate.
413413
- __mempool__ - Cumulative descendant fees are now updated properly when
@@ -419,14 +419,14 @@ Becomes this:
419419

420420
## v1.0.0-beta.8
421421

422-
### Notable Changes
422+
### Notable changes
423423

424424
- __mempool__ - Fixed critical fee estimator bug causing throwing in the
425425
mempool.
426426

427427
## v1.0.0-beta.7
428428

429-
### Notable Changes
429+
### Notable changes
430430

431431
- __http__ - Always display spent coins in tx routes (e.g. `/tx/[txid]`).
432432
- __mempool__ - An on-disk mempool is now exposed via `--persistent-mempool`
@@ -438,42 +438,42 @@ Becomes this:
438438

439439
## v1.0.0-beta.6
440440

441-
### Notable Changes
441+
### Notable changes
442442

443443
- __http__ - Better bitcoind compatability for JSON-RPC.
444444

445445
## v1.0.0-beta.5
446446

447-
### Notable Changes
447+
### Notable changes
448448

449449
- __miner__ - Better fee rate comparisons.
450450
- __deps__ - Upgrade deps, fix build on arm and windows.
451451

452452
## v1.0.0-beta.4
453453

454-
### Notable Changes
454+
### Notable changes
455455

456456
- __miner__ - Optimized TX sorting.
457457
- __rpc__ - Improved getblocktemplate to provide more
458458
accurate results to bitcoind.
459459

460460
## v1.0.0-beta.3
461461

462-
### Notable Changes
462+
### Notable changes
463463

464464
- __miner__ - Improved fee rate sorting.
465465
- __rpc__ - Fix incompatibilities in rpc api (getblocktemplate & submitblock).
466466

467467
## v1.0.0-beta.2
468468

469-
### Notable Changes
469+
### Notable changes
470470

471471
- __pool__ - Increase max header chain failures to 500 (prevents the initial
472472
sync from reverting to getblocks so frequently).
473473

474474
## v1.0.0-beta.1
475475

476-
### Notable Changes
476+
### Notable changes
477477

478478
- __wsproxy__: Fixed proof of work handling in websocket proxy (43c491b).
479479
- __chain__: Optimized MTP and network target calculations (1e07d1b).
@@ -485,6 +485,6 @@ Becomes this:
485485

486486
## v1.0.0-beta
487487

488-
### Notable Changes
488+
### Notable changes
489489

490490
- Initial tagged release.

README.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,14 @@ $ npm install
3636
$ ./bin/bcoin
3737
```
3838

39-
See the [Beginner's Guide][guide] for more in-depth installation instructions.
39+
See the [Getting started][guide] guide for more in-depth installation
40+
instructions, including verifying releases.
4041

4142
## Documentation
4243

43-
- API Docs: https://bcoin.io/docs/
44-
- REST Docs: https://bcoin.io/api-docs/
45-
- Docs: [docs/](docs/README.md)
44+
- General docs: [docs/](docs/README.md)
45+
- Wallet and node API docs: https://bcoin.io/api-docs/
46+
- Library API docs: https://bcoin.io/docs/
4647

4748
## Support
4849

@@ -68,10 +69,10 @@ all code is your original work. `</legalese>`
6869
See LICENSE for more info.
6970

7071
[purse]: https://purse.io
71-
[guide]: https://github.com/bcoin-org/bcoin/blob/master/docs/Beginner's-Guide.md
72+
[guide]: docs/getting-started.md
7273
[freenode]: https://freenode.net/
7374
[irc]: irc://irc.freenode.net/bcoin
74-
[changelog]: https://github.com/bcoin-org/bcoin/blob/master/CHANGELOG.md
75+
[changelog]: CHANGELOG.md
7576

7677
[coverage-status-img]: https://codecov.io/gh/bcoin-org/bcoin/badge.svg?branch=master
7778
[coverage-status-url]: https://codecov.io/gh/bcoin-org/bcoin?branch=master

docs/README.md

+38-22
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,44 @@
1-
## Getting Started
2-
- [Getting Started](Beginner's-Guide.md)
3-
- [Configuration](Configuration.md)
4-
- [Wallet System](Wallet-System.md)
5-
- [Design](Design.md)
6-
- [Guides](https://bcoin.io/guides.html)
1+
# Documentation
2+
3+
## Table of contents
4+
5+
- [Getting started](getting-started.md)
6+
- [Configuration](configuration.md)
7+
- [Wallet system](wallet-system.md)
8+
- [Design](design.md)
9+
- [Node and wallet CLI](cli.md)
710

8-
## Running
9-
- [Bcoin CLI](CLI.md)
10-
- [Running in the Browser](https://bcoin.io/guides/browser.html)
11-
- [REST and RPC API](https://bcoin.io/api-docs/index.html#introduction)
11+
## External links
12+
13+
- [Guides](https://bcoin.io/guides.html)
14+
- [Running in the browser](https://bcoin.io/guides/browser.html)
15+
- [Node and wallet REST and RPC API](https://bcoin.io/api-docs/index.html)
1216

13-
## Code Examples
17+
## Library examples
1418

1519
These code examples are designed to demonstrate how to integrate bcoin modules
1620
with minimal configuration.
1721

18-
- [Simple Fullnode](Examples/fullnode.js) - Creates a `FullNode` object and connects to `testnet`.
19-
- [Connect to Peer](Examples/connect-to-peer.js) - Connects to a user-defined peer in `regtest` mode.
20-
- [Connecting to the P2P Network](Examples/connect-to-the-p2p-network.js) - Creates `chain`, `pool`, and `mempool` objects for both main and testnet networks.
21-
- [Creating a Blockchain and Mempool](Examples/create-a-blockchain-and-mempool.js) - Mines a block from the mempool to the chain.
22-
- [Wallet with Dummy TX](Examples/wallet.js) - Adds a "dummy" transaction to the wallet and `tx` event is handled.
23-
- [SPV Sync](Examples/spv-sync-wallet.js) - A transaction matching the SPV node's bloom filter is broadcast by a minimal full node to the SPV node.
24-
- [Plugin Example](Examples/peers-plugin.js) - Demonstrates the `plugin` feature of bcoin's `node` object.
25-
- [Client API Usage](Examples/client-api.js) - Demonstrates usage of the node and wallet API.
26-
- [Create and Sign TX](Examples/create-sign-tx.js) - Demonstrates how to use `mtx` and `keyring` modules to sign a transaction.
27-
- [Get Transaction from Chain](Examples/get-tx-from-chain.js) - Connects to live testnet network and syncs the first 1000 blocks with tx indexing active.
28-
- [Create Watch Only Wallet](Examples/watch-only-wallet.js) - Imports an `xpub` into a new watch-only wallet that can derive addresses.
22+
- [Simple fullnode](examples/fullnode.js) - Creates a `FullNode` object and
23+
connects to `testnet`.
24+
- [Connect to peer](examples/connect-to-peer.js) - Connects to a user-defined
25+
peer in `regtest` mode.
26+
- [Connecting to the P2P network](examples/connect-to-the-p2p-network.js) -
27+
Creates `chain`, `pool`, and `mempool` objects for both main and
28+
testnet networks.
29+
- [Creating a blockchain and mempool](examples/create-a-blockchain-and-mempool.js) -
30+
Mines a block from the mempool to the chain.
31+
- [Wallet with dummy TX](examples/wallet.js) - Adds a "dummy" transaction to
32+
the wallet and `tx` event is handled.
33+
- [SPV sync](examples/spv-sync-wallet.js) - A transaction matching the SPV
34+
node's bloom filter is broadcast by a minimal full node to the SPV node.
35+
- [Plugin example](examples/peers-plugin.js) - Demonstrates the `plugin`
36+
feature of bcoin's `node` object.
37+
- [Client API usage](examples/client-api.js) - Demonstrates usage of the node
38+
and wallet API.
39+
- [Create and sign TX](examples/create-sign-tx.js) - Demonstrates how to use
40+
`mtx` and `keyring` modules to sign a transaction.
41+
- [Get transaction from chain](examples/get-tx-from-chain.js) - Connects to
42+
live testnet network and syncs the first 1000 blocks with tx indexing active.
43+
- [Create watch only wallet](examples/watch-only-wallet.js) - Imports an `xpub`
44+
into a new watch-only wallet that can derive addresses.

docs/CLI.md docs/cli.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
Bcoin ships with [bclient](https://github.com/bcoin-org/bclient) as its default client
2-
to the [API](https://bcoin.io/api-docs) for command line access.
1+
# Node and wallet CLI
2+
3+
Bcoin ships with [bclient](https://github.com/bcoin-org/bclient) as its
4+
default client to the [API](https://bcoin.io/api-docs) for command
5+
line access.
36

47
## Configuration
58

@@ -17,7 +20,8 @@ With command-line arguments:
1720
$ bcoin-cli --network=testnet --api-key=hunter2 info
1821
```
1922

20-
You can also use `~/.bcoin/bcoin.conf` for configuration options, see [Configuration](Configuration.md) for the full details.
23+
You can also use `~/.bcoin/bcoin.conf` for configuration options,
24+
see [Configuration](configuration.md) for the full details.
2125

2226
## Examples
2327

@@ -66,4 +70,4 @@ $ bcoin-cli help
6670
$ bcoin-cli rpc help
6771
$ bwallet-cli help
6872
$ bwallet-cli rpc help
69-
```
73+
```

0 commit comments

Comments
 (0)