Skip to content

Commit 3210756

Browse files
committed
Merge #14054: p2p: Disable BIP 61 by default
faea5bf doc: release notes for -enablebip61 default change (MarcoFalke) fa14b54 p2p: Disable BIP 61 by default (MarcoFalke) Pull request description: The live p2p network should not be used for debugging or as development aid when implementing the p2p protocol. Instead, applications should be tested locally (e.g. by inspecting the debug log of a validating node on the local network) Using the p2p network for this purpose seems wasteful and even dangerous, as peers can not be trusted to send the correct reject messages or a reject message at all. Tree-SHA512: 9c91ad035b5110942172a3b4b8a332a84e0c0aa9ee80f8134aeab63e66ac604841e68b04038681c288b716e5e0cbe38065eb5c7eb63fa72c3bdb3255a4b2d99d
2 parents e5eb8ba + faea5bf commit 3210756

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

doc/release-notes.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,16 @@ support versions of macOS older than 10.10.
5959
Notable changes
6060
===============
6161

62+
Command line option changes
63+
---------------------------
64+
65+
The `-enablebip61` command line option (introduced in Bitcoin Core 0.17.0) is
66+
used to toggle sending of BIP 61 reject messages. Reject messages have no use
67+
case on the P2P network and are only logged for debugging by most network
68+
nodes. The option will now by default be off for improved privacy and security
69+
as well as reduced upload usage. The option can explicitly be turned on for
70+
local-network debugging purposes.
71+
6272
Example item
6373
------------
6474

src/net_processing.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ static const unsigned int DEFAULT_MAX_ORPHAN_TRANSACTIONS = 100;
1515
/** Default number of orphan+recently-replaced txn to keep around for block reconstruction */
1616
static const unsigned int DEFAULT_BLOCK_RECONSTRUCTION_EXTRA_TXN = 100;
1717
/** Default for BIP61 (sending reject messages) */
18-
static constexpr bool DEFAULT_ENABLE_BIP61 = true;
18+
static constexpr bool DEFAULT_ENABLE_BIP61{false};
1919

2020
class PeerLogicValidation final : public CValidationInterface, public NetEventsInterface {
2121
private:

0 commit comments

Comments
 (0)