mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-30 03:03:17 +00:00
p2p: reject invalid pruning seeds in peer lists
This commit is contained in:
parent
b60cf6a938
commit
4ce40edb27
1 changed files with 2 additions and 0 deletions
|
@ -1858,6 +1858,8 @@ namespace nodetool
|
||||||
if (ipv4.ip() == 0)
|
if (ipv4.ip() == 0)
|
||||||
ignore = true;
|
ignore = true;
|
||||||
}
|
}
|
||||||
|
if (be.pruning_seed && (be.pruning_seed < tools::make_pruning_seed(1, CRYPTONOTE_PRUNING_LOG_STRIPES) || be.pruning_seed > tools::make_pruning_seed(1ul << CRYPTONOTE_PRUNING_LOG_STRIPES, CRYPTONOTE_PRUNING_LOG_STRIPES)))
|
||||||
|
ignore = true;
|
||||||
if (ignore)
|
if (ignore)
|
||||||
{
|
{
|
||||||
MDEBUG("Ignoring " << be.adr.str());
|
MDEBUG("Ignoring " << be.adr.str());
|
||||||
|
|
Loading…
Reference in a new issue