Increase request_interval_ms for TSAN/ASAN build (#1934)
* Increase request_interval_ms for test network * Increase request_interval_ms for NANO_TSAN/NANO_ASAN builds
This commit is contained in:
parent
3fd69b643c
commit
e9b5d54703
2 changed files with 8 additions and 2 deletions
|
@ -55,7 +55,13 @@ public:
|
|||
default_rpc_port = is_live_network () ? 7076 : is_beta_network () ? 55000 : 45000;
|
||||
default_ipc_port = is_live_network () ? 7077 : is_beta_network () ? 56000 : 46000;
|
||||
default_websocket_port = is_live_network () ? 7078 : is_beta_network () ? 57000 : 47000;
|
||||
request_interval_ms = is_test_network () ? 10 : 16000;
|
||||
request_interval_ms = is_test_network () ? 20 : 16000;
|
||||
// Increase interval for test TSAN/ASAN builds
|
||||
#if defined(__has_feature)
|
||||
#if __has_feature(thread_sanitizer) || __has_feature(address_sanitizer)
|
||||
request_interval_ms = is_test_network () ? 100 : 16000;
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
/** The network this param object represents. This may differ from the global active network; this is needed for certain --debug... commands */
|
||||
|
|
|
@ -76,7 +76,7 @@ void nano::active_transactions::request_confirm (std::unique_lock<std::mutex> &
|
|||
auto transaction (node.store.tx_begin_read ());
|
||||
unsigned unconfirmed_count (0);
|
||||
unsigned unconfirmed_announcements (0);
|
||||
unsigned could_fit_delay = node.network_params.network.is_test_network () ? 10 : 1;
|
||||
unsigned could_fit_delay = node.network_params.network.is_test_network () ? announcement_long - 1 : 1;
|
||||
std::unordered_map<std::shared_ptr<nano::transport::channel>, std::vector<std::pair<nano::block_hash, nano::block_hash>>> requests_bundle;
|
||||
std::deque<std::shared_ptr<nano::block>> rebroadcast_bundle;
|
||||
std::deque<std::pair<std::shared_ptr<nano::block>, std::shared_ptr<std::vector<std::shared_ptr<nano::transport::channel>>>>> confirm_req_bundle;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue