-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,48 @@ | ||
# 学习日志 | ||
|
||
## 搭建比特币节点 | ||
|
||
1. 下载程序 | ||
|
||
下载地址: [https://bitcoincore.org/en/download/](https://bitcoincore.org/en/download/) | ||
根据你的操作系统选择对应的程序。 | ||
|
||
2. 运行 bitcoind 启动节点 | ||
|
||
下载解压,目录结构如下: | ||
|
||
 | ||
|
||
3. 启动节点 | ||
|
||
```shell | ||
./bin/bitcoind | ||
``` | ||
|
||
节点同步状态如下: | ||
|
||
先经历一个比较漫长的 `Pre-synchronizing` 阶段 | ||
 | ||
|
||
再经历一个比较漫长的 `Synchronizing blockheaders` 阶段 | ||
 | ||
|
||
最后,开始同步区块 | ||
|
||
 | ||
|
||
4. 查看节点信息 | ||
|
||
```shell | ||
./bin/bitcoin-cli -getinfo | ||
``` | ||
|
||
 | ||
|
||
获取同步的区块高度 | ||
|
||
```shell | ||
./bin/bitcoin-cli -getblockcount | ||
``` | ||
|
||
 |