Skip to content

Commit

Permalink
Expose 8333 in Dockerfile and add Syncing the Bitcoin Network docs
Browse files Browse the repository at this point in the history
  • Loading branch information
liuchengxu committed Jul 27, 2024
1 parent dbd807a commit 1366804
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ VOLUME ["/node-data"]

USER nobody:nogroup

EXPOSE 30333 9933 9944 9615
EXPOSE 8333 30333 9933 9944 9615

ENTRYPOINT ["/subcoin"]
11 changes: 11 additions & 0 deletions docs/src/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* [Get the `bitcoind` Binary](#get-the-bitcoind-binary)
* [Run `subcoin import-blocks`](#run-subcoin-import-blocks)
* [Verify the UTXO Set State](#verify-the-utxo-set-state)
* [Syncing the Bitcoin Network](#syncing-the-bitcoin-network)

<!-- /clap-markdown-toc -->

Expand Down Expand Up @@ -125,3 +126,13 @@ txouts: 9494
bogosize: 1109244
total_amount: 500000.00000000
```

## Syncing the Bitcoin Network

Run the following command to sync the Bitcoin blockchain from the Bitcoin P2P network. The `--log subcoin_network=debug` option
will enable debug-level logging to show detailed information about the syncing process. By default, the block will be fully verified.
You can use `--block-verification=none` to skip the block verification. Check out `subcoin run --help` for more options.

```bash
subcoin run -d data --log subcoin_network=debug
```

0 comments on commit 1366804

Please sign in to comment.