File tree Expand file tree Collapse file tree 3 files changed +4
-15
lines changed Expand file tree Collapse file tree 3 files changed +4
-15
lines changed Original file line number Diff line number Diff line change @@ -2859,12 +2859,6 @@ void CConnman::RecordBytesSent(uint64_t bytes)
2859
2859
nMaxOutboundTotalBytesSentInCycle += bytes;
2860
2860
}
2861
2861
2862
- void CConnman::SetMaxOutboundTarget (uint64_t limit)
2863
- {
2864
- LOCK (cs_totalBytesSent);
2865
- nMaxOutboundLimit = limit;
2866
- }
2867
-
2868
2862
uint64_t CConnman::GetMaxOutboundTarget ()
2869
2863
{
2870
2864
LOCK (cs_totalBytesSent);
Original file line number Diff line number Diff line change @@ -366,8 +366,6 @@ class CConnman
366
366
// ! that peer during `net_processing.cpp:PushNodeVersion()`.
367
367
ServiceFlags GetLocalServices () const ;
368
368
369
- // !set the max outbound target in bytes
370
- void SetMaxOutboundTarget (uint64_t limit);
371
369
uint64_t GetMaxOutboundTarget ();
372
370
373
371
// !set the timeframe for the max outbound target
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 , 30 )) {
34
+ switch (fuzzed_data_provider.ConsumeIntegralInRange <int >(0 , 29 )) {
35
35
case 0 :
36
36
random_address = ConsumeAddress (fuzzed_data_provider);
37
37
break ;
@@ -127,18 +127,15 @@ 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.SetMaxOutboundTarget (fuzzed_data_provider.ConsumeIntegral <uint64_t >());
131
- break ;
132
- case 27 :
133
130
connman.SetMaxOutboundTimeframe (fuzzed_data_provider.ConsumeIntegral <uint64_t >());
134
131
break ;
135
- case 28 :
132
+ case 27 :
136
133
connman.SetNetworkActive (fuzzed_data_provider.ConsumeBool ());
137
134
break ;
138
- case 29 :
135
+ case 28 :
139
136
connman.SetServices (random_service, static_cast <ServiceFlags>(fuzzed_data_provider.ConsumeIntegral <uint64_t >()));
140
137
break ;
141
- case 30 :
138
+ case 29 :
142
139
connman.SetTryNewOutboundPeer (fuzzed_data_provider.ConsumeBool ());
143
140
break ;
144
141
}
You can’t perform that action at this time.
0 commit comments