Merge pull request #5954

4ce40ed p2p: reject invalid pruning seeds in peer lists (moneromooo-monero)
This commit is contained in:
luigi1111 2019-10-16 13:42:23 -05:00
commit 67043d642d
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010
1 changed files with 2 additions and 0 deletions

View File

@ -1865,6 +1865,8 @@ namespace nodetool
if (ipv4.ip() == 0)
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)
{
MDEBUG("Ignoring " << be.adr.str());