Skip to content

Commit d730ef0

Browse files
committed
Make protocol checksum validation a configurable option.
1 parent 6535282 commit d730ef0

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

data/bn.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ protocol_minimum = 31402
2929
services = 1
3030
# The magic number for message headers, defaults to 3652501241 (use 118034699 for testnet).
3131
identifier = 3652501241
32+
# Validate the checksum of network messages, defaults to false.
33+
validate_checksum = false
3234
# The port for incoming connections, defaults to 8333 (use 18333 for testnet).
3335
inbound_port = 8333
3436
# The target number of incoming network connections, defaults to 8.

src/parser.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,11 @@ options_metadata parser::load_settings()
192192
value<uint64_t>(&configured.network.services),
193193
"The services exposed by network connections, defaults to 1 (full node)."
194194
)
195+
(
196+
"network.validate_checksum",
197+
value<bool>(&configured.network.validate_checksum),
198+
"Validate the checksum of network messages, defaults to false."
199+
)
195200
(
196201
"network.identifier",
197202
value<uint32_t>(&configured.network.identifier),

0 commit comments

Comments
 (0)