aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2019-10-16 13:42:23 -0500
committerluigi1111 <luigi1111w@gmail.com>2019-10-16 13:42:23 -0500
commit67043d642dd1377c658b231de759eab619066c9e (patch)
tree0823bc75ec8398b66356668e63e060c760cdaded
parentMerge pull request #5952 (diff)
parentp2p: reject invalid pruning seeds in peer lists (diff)
downloadmonero-67043d642dd1377c658b231de759eab619066c9e.tar.xz
Merge pull request #5954
4ce40ed p2p: reject invalid pruning seeds in peer lists (moneromooo-monero)
-rw-r--r--src/p2p/net_node.inl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl
index 4be6819cb..f216eee51 100644
--- a/src/p2p/net_node.inl
+++ b/src/p2p/net_node.inl
@@ -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());