-blocksdir=<dir>
Specify blocks directory (default: <datadir>/blocks)
定义blocks的路径,linux下默认~/.bitcoin/blocks,视datadir路经而定
-conf=<file>
Specify configuration file. Relative paths will be prefixed by datadir
location. (default: bitcoin.conf)
定义配置文件
-daemon
Run in the background as a daemon and accept commands
是否在后台以守护进程方式运行,类似于在linux里面加上‘&’放到后台运行
但是可以接受其他进程通过RPC方式进行控制,类似矿机等
-datadir=<dir>
Specify data directory
data目录,linux下默认~/.bitcoin
-testnet
Use the test chain
使用比特币的测试链,以便更好地进行交易测试
-regtest
Use the regtest chain
使用本地链测试链
-logips
Include IP addresses in debug output (default: 0)
输出IP地址到调试输出
-prune=<n>
Reduce storage requirements by enabling pruning (deleting) of old
blocks. This allows the pruneblockchain RPC to be called to
delete specific blocks, and enables automatic pruning of old
blocks if a target size in MiB is provided. This mode is
incompatible with -txindex and -rescan. Warning: Reverting this
setting requires re-downloading the entire blockchain. (default:
0 = disable pruning blocks, 1 = allow manual pruning via RPC,
>550 = automatically prune block files to stay under the
specified target size in MiB)
是否裁剪老旧的块,以减少体积,但是好像第一次跑的时候,还是会全部下一遍,应该是全部下一遍之后,只保留最新的块。