Skip to content

Commit 3461c2f

Browse files
committed
Parse new notify_limit_hours setting.
1 parent a76e9a8 commit 3461c2f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

data/bn.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ bip90 = true
152152
[node]
153153
# The time to wait for a requested block, defaults to 60.
154154
block_latency_seconds = 60
155+
# Disable notifications when top block older than this, defaults to 24 (0 disables).
156+
notify_limit_hours = 24
155157
# The minimum fee per byte required for transaction acceptance, defaults to 1.
156158
byte_fee_satoshis = 1
157159
# Request that peers relay transactions, defaults to false.

src/parser.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,12 @@ options_metadata parser::load_settings()
410410
value<uint32_t>(&configured.node.block_latency_seconds),
411411
"The time to wait for a requested block, defaults to 60."
412412
)
413+
(
414+
/* Internally this is blockchain, but it is conceptually a node setting. */
415+
"node.notify_limit_hours",
416+
value<uint32_t>(&configured.chain.notify_limit_hours),
417+
"Disable notifications when top block older than this, defaults to 24 (0 disables)."
418+
)
413419
(
414420
/* Internally this is blockchain, but it is conceptually a node setting. */
415421
"node.byte_fee_satoshis",

0 commit comments

Comments
 (0)