forked from lthn/blockchain
renamed field
This commit is contained in:
parent
68871b93ec
commit
71cc7d1363
2 changed files with 4 additions and 4 deletions
|
|
@ -192,9 +192,9 @@ namespace nodetool
|
|||
new_block_list.insert(ip);
|
||||
}
|
||||
|
||||
if (config.ip_priority_list.size())
|
||||
if (config.priority_peers_list.size())
|
||||
{
|
||||
bool r = parse_peerlist(config.ip_priority_list, new_priority_peers);
|
||||
bool r = parse_peerlist(config.priority_peers_list, new_priority_peers);
|
||||
CHECK_AND_ASSERT_MES(r, false, "Failed to parse priority peers");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -297,14 +297,14 @@ namespace nodetool
|
|||
std::optional<uint64_t> outgoing_connections_limit;
|
||||
std::vector<std::string> ip_black_list;
|
||||
std::optional<bool> use_only_priority_peers = false; //allow to make outgoing connections only to the peers listed in ip_priority_list
|
||||
std::vector<std::string> ip_priority_list;
|
||||
std::vector<std::string> priority_peers_list;
|
||||
|
||||
BEGIN_KV_SERIALIZE_MAP()
|
||||
KV_SERIALIZE(incoming_connections_limit)
|
||||
KV_SERIALIZE(outgoing_connections_limit)
|
||||
KV_SERIALIZE(ip_black_list)
|
||||
KV_SERIALIZE(use_only_priority_peers)
|
||||
KV_SERIALIZE(ip_priority_list)
|
||||
KV_SERIALIZE(priority_peers_list)
|
||||
END_KV_SERIALIZE_MAP()
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue