mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
refactor: Use type-safe std::chrono in net
This commit is contained in:
parent
eb63b8fab9
commit
fad7ead146
10 changed files with 76 additions and 74 deletions
|
|
@ -21,10 +21,10 @@ FUZZ_TARGET(node_eviction)
|
|||
LIMITED_WHILE(fuzzed_data_provider.ConsumeBool(), 10000) {
|
||||
eviction_candidates.push_back({
|
||||
/*id=*/fuzzed_data_provider.ConsumeIntegral<NodeId>(),
|
||||
/*nTimeConnected=*/fuzzed_data_provider.ConsumeIntegral<int64_t>(),
|
||||
/*nTimeConnected=*/std::chrono::seconds{fuzzed_data_provider.ConsumeIntegral<int64_t>()},
|
||||
/*m_min_ping_time=*/std::chrono::microseconds{fuzzed_data_provider.ConsumeIntegral<int64_t>()},
|
||||
/*nLastBlockTime=*/fuzzed_data_provider.ConsumeIntegral<int64_t>(),
|
||||
/*nLastTXTime=*/fuzzed_data_provider.ConsumeIntegral<int64_t>(),
|
||||
/*nLastBlockTime=*/std::chrono::seconds{fuzzed_data_provider.ConsumeIntegral<int64_t>()},
|
||||
/*nLastTXTime=*/std::chrono::seconds{fuzzed_data_provider.ConsumeIntegral<int64_t>()},
|
||||
/*fRelevantServices=*/fuzzed_data_provider.ConsumeBool(),
|
||||
/*fRelayTxes=*/fuzzed_data_provider.ConsumeBool(),
|
||||
/*fBloomFilter=*/fuzzed_data_provider.ConsumeBool(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue