diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-10-02 16:37:52 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-10-02 19:29:05 +0000 |
commit | 4ce40edb27480f4266a75937d94047e56abfbc82 (patch) | |
tree | 83abb966e1944da8cf33031d14fb6df8a80e4e9d /src/p2p/net_node.inl | |
parent | Merge pull request #5939 (diff) | |
download | monero-4ce40edb27480f4266a75937d94047e56abfbc82.tar.xz |
p2p: reject invalid pruning seeds in peer lists
Diffstat (limited to 'src/p2p/net_node.inl')
-rw-r--r-- | src/p2p/net_node.inl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl index 24c87cef8..1f595ef26 100644 --- a/src/p2p/net_node.inl +++ b/src/p2p/net_node.inl @@ -1858,6 +1858,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()); |