@@ -113,7 +113,20 @@ static const unsigned int MAX_BLOCKS_TO_ANNOUNCE = 8;
113
113
static const int MAX_UNCONNECTING_HEADERS = 10 ;
114
114
/* * Minimum blocks required to signal NODE_NETWORK_LIMITED */
115
115
static const unsigned int NODE_NETWORK_LIMITED_MIN_BLOCKS = 288 ;
116
-
116
+ /* * Average delay between local address broadcasts */
117
+ static constexpr std::chrono::hours AVG_LOCAL_ADDRESS_BROADCAST_INTERVAL{24 };
118
+ /* * Average delay between peer address broadcasts */
119
+ static constexpr std::chrono::seconds AVG_ADDRESS_BROADCAST_INTERVAL{30 };
120
+ /* * Average delay between trickled inventory transmissions in seconds.
121
+ * Blocks and whitelisted receivers bypass this, outbound peers get half this delay. */
122
+ static const unsigned int INVENTORY_BROADCAST_INTERVAL = 5 ;
123
+ /* * Maximum number of inventory items to send per transmission.
124
+ * Limits the impact of low-fee transaction floods. */
125
+ static constexpr unsigned int INVENTORY_BROADCAST_MAX = 7 * INVENTORY_BROADCAST_INTERVAL;
126
+ /* * Average delay between feefilter broadcasts in seconds. */
127
+ static constexpr unsigned int AVG_FEEFILTER_BROADCAST_INTERVAL = 10 * 60 ;
128
+ /* * Maximum feefilter broadcast delay after significant change. */
129
+ static constexpr unsigned int MAX_FEEFILTER_CHANGE_DELAY = 5 * 60 ;
117
130
118
131
struct COrphanTx {
119
132
// When modifying, adapt the copy of this definition in tests/DoS_tests.
@@ -130,21 +143,6 @@ void EraseOrphansFor(NodeId peer);
130
143
/* * Increase a node's misbehavior score. */
131
144
void Misbehaving (NodeId nodeid, int howmuch, const std::string& message=" " ) EXCLUSIVE_LOCKS_REQUIRED(cs_main);
132
145
133
- /* * Average delay between local address broadcasts */
134
- static constexpr std::chrono::hours AVG_LOCAL_ADDRESS_BROADCAST_INTERVAL{24 };
135
- /* * Average delay between peer address broadcasts */
136
- static constexpr std::chrono::seconds AVG_ADDRESS_BROADCAST_INTERVAL{30 };
137
- /* * Average delay between trickled inventory transmissions in seconds.
138
- * Blocks and whitelisted receivers bypass this, outbound peers get half this delay. */
139
- static const unsigned int INVENTORY_BROADCAST_INTERVAL = 5 ;
140
- /* * Maximum number of inventory items to send per transmission.
141
- * Limits the impact of low-fee transaction floods. */
142
- static constexpr unsigned int INVENTORY_BROADCAST_MAX = 7 * INVENTORY_BROADCAST_INTERVAL;
143
- /* * Average delay between feefilter broadcasts in seconds. */
144
- static constexpr unsigned int AVG_FEEFILTER_BROADCAST_INTERVAL = 10 * 60 ;
145
- /* * Maximum feefilter broadcast delay after significant change. */
146
- static constexpr unsigned int MAX_FEEFILTER_CHANGE_DELAY = 5 * 60 ;
147
-
148
146
// Internal stuff
149
147
namespace {
150
148
/* * Number of nodes with fSyncStarted. */
0 commit comments