mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-06-02 15:32:34 +02:00
net: remove SetMaxOutboundTarget
This has been unused since f3552da813
.
This commit is contained in:
parent
ade38b6ee8
commit
2f3f1aec1f
@ -2859,12 +2859,6 @@ void CConnman::RecordBytesSent(uint64_t bytes)
|
|||||||
nMaxOutboundTotalBytesSentInCycle += bytes;
|
nMaxOutboundTotalBytesSentInCycle += bytes;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CConnman::SetMaxOutboundTarget(uint64_t limit)
|
|
||||||
{
|
|
||||||
LOCK(cs_totalBytesSent);
|
|
||||||
nMaxOutboundLimit = limit;
|
|
||||||
}
|
|
||||||
|
|
||||||
uint64_t CConnman::GetMaxOutboundTarget()
|
uint64_t CConnman::GetMaxOutboundTarget()
|
||||||
{
|
{
|
||||||
LOCK(cs_totalBytesSent);
|
LOCK(cs_totalBytesSent);
|
||||||
|
@ -366,8 +366,6 @@ public:
|
|||||||
//! that peer during `net_processing.cpp:PushNodeVersion()`.
|
//! that peer during `net_processing.cpp:PushNodeVersion()`.
|
||||||
ServiceFlags GetLocalServices() const;
|
ServiceFlags GetLocalServices() const;
|
||||||
|
|
||||||
//!set the max outbound target in bytes
|
|
||||||
void SetMaxOutboundTarget(uint64_t limit);
|
|
||||||
uint64_t GetMaxOutboundTarget();
|
uint64_t GetMaxOutboundTarget();
|
||||||
|
|
||||||
//!set the timeframe for the max outbound target
|
//!set the timeframe for the max outbound target
|
||||||
|
@ -31,7 +31,7 @@ void test_one_input(const std::vector<uint8_t>& buffer)
|
|||||||
CSubNet random_subnet;
|
CSubNet random_subnet;
|
||||||
std::string random_string;
|
std::string random_string;
|
||||||
while (fuzzed_data_provider.ConsumeBool()) {
|
while (fuzzed_data_provider.ConsumeBool()) {
|
||||||
switch (fuzzed_data_provider.ConsumeIntegralInRange<int>(0, 30)) {
|
switch (fuzzed_data_provider.ConsumeIntegralInRange<int>(0, 29)) {
|
||||||
case 0:
|
case 0:
|
||||||
random_address = ConsumeAddress(fuzzed_data_provider);
|
random_address = ConsumeAddress(fuzzed_data_provider);
|
||||||
break;
|
break;
|
||||||
@ -127,18 +127,15 @@ void test_one_input(const std::vector<uint8_t>& buffer)
|
|||||||
connman.SetBestHeight(fuzzed_data_provider.ConsumeIntegral<int>());
|
connman.SetBestHeight(fuzzed_data_provider.ConsumeIntegral<int>());
|
||||||
break;
|
break;
|
||||||
case 26:
|
case 26:
|
||||||
connman.SetMaxOutboundTarget(fuzzed_data_provider.ConsumeIntegral<uint64_t>());
|
|
||||||
break;
|
|
||||||
case 27:
|
|
||||||
connman.SetMaxOutboundTimeframe(fuzzed_data_provider.ConsumeIntegral<uint64_t>());
|
connman.SetMaxOutboundTimeframe(fuzzed_data_provider.ConsumeIntegral<uint64_t>());
|
||||||
break;
|
break;
|
||||||
case 28:
|
case 27:
|
||||||
connman.SetNetworkActive(fuzzed_data_provider.ConsumeBool());
|
connman.SetNetworkActive(fuzzed_data_provider.ConsumeBool());
|
||||||
break;
|
break;
|
||||||
case 29:
|
case 28:
|
||||||
connman.SetServices(random_service, static_cast<ServiceFlags>(fuzzed_data_provider.ConsumeIntegral<uint64_t>()));
|
connman.SetServices(random_service, static_cast<ServiceFlags>(fuzzed_data_provider.ConsumeIntegral<uint64_t>()));
|
||||||
break;
|
break;
|
||||||
case 30:
|
case 29:
|
||||||
connman.SetTryNewOutboundPeer(fuzzed_data_provider.ConsumeBool());
|
connman.SetTryNewOutboundPeer(fuzzed_data_provider.ConsumeBool());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user