mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
add m_added_nodes to connman options
This commit is contained in:
parent
16e41844e7
commit
605918272c
@ -1656,6 +1656,7 @@ bool AppInitMain(boost::thread_group& threadGroup, CScheduler& scheduler)
|
|||||||
connOptions.m_msgproc = peerLogic.get();
|
connOptions.m_msgproc = peerLogic.get();
|
||||||
connOptions.nSendBufferMaxSize = 1000*gArgs.GetArg("-maxsendbuffer", DEFAULT_MAXSENDBUFFER);
|
connOptions.nSendBufferMaxSize = 1000*gArgs.GetArg("-maxsendbuffer", DEFAULT_MAXSENDBUFFER);
|
||||||
connOptions.nReceiveFloodSize = 1000*gArgs.GetArg("-maxreceivebuffer", DEFAULT_MAXRECEIVEBUFFER);
|
connOptions.nReceiveFloodSize = 1000*gArgs.GetArg("-maxreceivebuffer", DEFAULT_MAXRECEIVEBUFFER);
|
||||||
|
connOptions.m_added_nodes = gArgs.GetArgs("-addnode");
|
||||||
|
|
||||||
connOptions.nMaxOutboundTimeframe = nMaxOutboundTimeframe;
|
connOptions.nMaxOutboundTimeframe = nMaxOutboundTimeframe;
|
||||||
connOptions.nMaxOutboundLimit = nMaxOutboundLimit;
|
connOptions.nMaxOutboundLimit = nMaxOutboundLimit;
|
||||||
|
@ -1897,11 +1897,6 @@ std::vector<AddedNodeInfo> CConnman::GetAddedNodeInfo()
|
|||||||
|
|
||||||
void CConnman::ThreadOpenAddedConnections()
|
void CConnman::ThreadOpenAddedConnections()
|
||||||
{
|
{
|
||||||
{
|
|
||||||
LOCK(cs_vAddedNodes);
|
|
||||||
vAddedNodes = gArgs.GetArgs("-addnode");
|
|
||||||
}
|
|
||||||
|
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
CSemaphoreGrant grant(*semAddnode);
|
CSemaphoreGrant grant(*semAddnode);
|
||||||
|
@ -147,6 +147,7 @@ public:
|
|||||||
std::vector<CService> vBinds, vWhiteBinds;
|
std::vector<CService> vBinds, vWhiteBinds;
|
||||||
bool m_use_addrman_outgoing = true;
|
bool m_use_addrman_outgoing = true;
|
||||||
std::vector<std::string> m_specified_outgoing;
|
std::vector<std::string> m_specified_outgoing;
|
||||||
|
std::vector<std::string> m_added_nodes;
|
||||||
};
|
};
|
||||||
|
|
||||||
void Init(const Options& connOptions) {
|
void Init(const Options& connOptions) {
|
||||||
@ -164,6 +165,7 @@ public:
|
|||||||
nMaxOutboundTimeframe = connOptions.nMaxOutboundTimeframe;
|
nMaxOutboundTimeframe = connOptions.nMaxOutboundTimeframe;
|
||||||
nMaxOutboundLimit = connOptions.nMaxOutboundLimit;
|
nMaxOutboundLimit = connOptions.nMaxOutboundLimit;
|
||||||
vWhitelistedRange = connOptions.vWhitelistedRange;
|
vWhitelistedRange = connOptions.vWhitelistedRange;
|
||||||
|
vAddedNodes = connOptions.m_added_nodes;
|
||||||
}
|
}
|
||||||
|
|
||||||
CConnman(uint64_t seed0, uint64_t seed1);
|
CConnman(uint64_t seed0, uint64_t seed1);
|
||||||
|
Loading…
Reference in New Issue
Block a user