File tree Expand file tree Collapse file tree 3 files changed +3
-21
lines changed Expand file tree Collapse file tree 3 files changed +3
-21
lines changed Original file line number Diff line number Diff line change @@ -2885,18 +2885,6 @@ uint64_t CConnman::GetMaxOutboundTimeLeftInCycle()
2885
2885
return (cycleEndTime < now) ? 0 : cycleEndTime - GetTime ();
2886
2886
}
2887
2887
2888
- void CConnman::SetMaxOutboundTimeframe (uint64_t timeframe)
2889
- {
2890
- LOCK (cs_totalBytesSent);
2891
- if (nMaxOutboundTimeframe != timeframe)
2892
- {
2893
- // reset measure-cycle in case of changing
2894
- // the timeframe
2895
- nMaxOutboundCycleStartTime = GetTime ();
2896
- }
2897
- nMaxOutboundTimeframe = timeframe;
2898
- }
2899
-
2900
2888
bool CConnman::OutboundTargetReached (bool historicalBlockServingLimit)
2901
2889
{
2902
2890
LOCK (cs_totalBytesSent);
Original file line number Diff line number Diff line change @@ -367,9 +367,6 @@ class CConnman
367
367
ServiceFlags GetLocalServices () const ;
368
368
369
369
uint64_t GetMaxOutboundTarget ();
370
-
371
- // !set the timeframe for the max outbound target
372
- void SetMaxOutboundTimeframe (uint64_t timeframe);
373
370
uint64_t GetMaxOutboundTimeframe ();
374
371
375
372
// ! check if the outbound target is reached
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ void test_one_input(const std::vector<uint8_t>& buffer)
31
31
CSubNet random_subnet;
32
32
std::string random_string;
33
33
while (fuzzed_data_provider.ConsumeBool ()) {
34
- switch (fuzzed_data_provider.ConsumeIntegralInRange <int >(0 , 29 )) {
34
+ switch (fuzzed_data_provider.ConsumeIntegralInRange <int >(0 , 28 )) {
35
35
case 0 :
36
36
random_address = ConsumeAddress (fuzzed_data_provider);
37
37
break ;
@@ -127,15 +127,12 @@ void test_one_input(const std::vector<uint8_t>& buffer)
127
127
connman.SetBestHeight (fuzzed_data_provider.ConsumeIntegral <int >());
128
128
break ;
129
129
case 26 :
130
- connman.SetMaxOutboundTimeframe (fuzzed_data_provider.ConsumeIntegral <uint64_t >());
131
- break ;
132
- case 27 :
133
130
connman.SetNetworkActive (fuzzed_data_provider.ConsumeBool ());
134
131
break ;
135
- case 28 :
132
+ case 27 :
136
133
connman.SetServices (random_service, static_cast <ServiceFlags>(fuzzed_data_provider.ConsumeIntegral <uint64_t >()));
137
134
break ;
138
- case 29 :
135
+ case 28 :
139
136
connman.SetTryNewOutboundPeer (fuzzed_data_provider.ConsumeBool ());
140
137
break ;
141
138
}
You can’t perform that action at this time.
0 commit comments