Skip to content

Commit fa8ced3

Browse files
author
MarcoFalke
committed
doc: Mention blocksonly in reduce-traffic.md, unhide option
1 parent fa320de commit fa8ced3

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

doc/reduce-traffic.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,16 @@ blocks and transactions to fewer nodes.
3535
Reducing the maximum connected nodes to a minimum could be desirable if traffic
3636
limits are tiny. Keep in mind that bitcoin's trustless model works best if you are
3737
connected to a handful of nodes.
38+
39+
## 4. Turn off transaction relay (`-blocksonly`)
40+
41+
Forwarding transactions to peers increases the P2P traffic. To only sync blocks
42+
with other peers, you can disable transaction relay.
43+
44+
Be reminded of the effects of this setting.
45+
46+
- Fee estimation will no longer work.
47+
- Not relaying other's transactions could hurt your privacy if used while a
48+
wallet is loaded or if you use the node to broadcast transactions.
49+
- It makes block propagation slower because compact block relay can only be
50+
used when transaction relay is enabled.

src/init.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ void SetupServerArgs()
383383
gArgs.AddArg("-blocksdir=<dir>", "Specify blocks directory (default: <datadir>/blocks)", false, OptionsCategory::OPTIONS);
384384
gArgs.AddArg("-blocknotify=<cmd>", "Execute command when the best block changes (%s in cmd is replaced by block hash)", false, OptionsCategory::OPTIONS);
385385
gArgs.AddArg("-blockreconstructionextratxn=<n>", strprintf("Extra transactions to keep in memory for compact block reconstructions (default: %u)", DEFAULT_BLOCK_RECONSTRUCTION_EXTRA_TXN), false, OptionsCategory::OPTIONS);
386-
gArgs.AddArg("-blocksonly", strprintf("Whether to operate in a blocks only mode (default: %u)", DEFAULT_BLOCKSONLY), true, OptionsCategory::OPTIONS);
386+
gArgs.AddArg("-blocksonly", strprintf("Whether to reject transactions from network peers. Transactions from the wallet or RPC are not affected. (default: %u)", DEFAULT_BLOCKSONLY), false, OptionsCategory::OPTIONS);
387387
gArgs.AddArg("-conf=<file>", strprintf("Specify configuration file. Relative paths will be prefixed by datadir location. (default: %s)", BITCOIN_CONF_FILENAME), false, OptionsCategory::OPTIONS);
388388
gArgs.AddArg("-datadir=<dir>", "Specify data directory", false, OptionsCategory::OPTIONS);
389389
gArgs.AddArg("-dbbatchsize", strprintf("Maximum database write batch size in bytes (default: %u)", nDefaultDbBatchSize), true, OptionsCategory::OPTIONS);

0 commit comments

Comments
 (0)