mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Merge pull request #1593
cbcdf8ad
Honor depth in get_peerlist_head method (Miguel Herranz)
This commit is contained in:
commit
3db3a6ee1a
1 changed files with 4 additions and 2 deletions
|
@ -285,9 +285,11 @@ namespace nodetool
|
||||||
{
|
{
|
||||||
if(!vl.last_seen)
|
if(!vl.last_seen)
|
||||||
continue;
|
continue;
|
||||||
bs_head.push_back(vl);
|
|
||||||
if(cnt++ > depth)
|
if(cnt++ >= depth)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
bs_head.push_back(vl);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue