mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-02-03 10:25:17 +00:00
increase tolerance for possiblyNeighbor check to reduce occurence of putData "ignoring request"
This commit is contained in:
parent
4c561ceb74
commit
6d128d1ac4
@ -1312,7 +1312,7 @@ void node_impl::incoming_request(msg const& m, entry& e)
|
|||||||
// check distance between target, nodes and our own id
|
// check distance between target, nodes and our own id
|
||||||
// n is sorted from closer(begin) to more distant (end)
|
// n is sorted from closer(begin) to more distant (end)
|
||||||
nodes_t n;
|
nodes_t n;
|
||||||
m_table.find_node(target, n, 0);
|
m_table.find_node(target, n, 0, m_table.bucket_size() * 2);
|
||||||
bool possiblyNeighbor = false;
|
bool possiblyNeighbor = false;
|
||||||
if( n.size() < m_table.bucket_size() ) {
|
if( n.size() < m_table.bucket_size() ) {
|
||||||
possiblyNeighbor = true;
|
possiblyNeighbor = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user