dtr-org / unit-e

A digital currency for a new era of decentralized trust
https://unit-e.io
MIT License
45 stars 15 forks source link

Remove not needed check in InFlightSnapshotDiscovery #851

Closed kostyantyn closed 5 years ago

kostyantyn commented 5 years ago

Reported by @cmihai and was caught by compiling with CXXFLAGS=-Og

The following check is not needed as we check the discovery timeout above. And also the now - node.m_requested_snapshot_at causes int overflow so that block always returns true and doesn't affect InFlightSnapshotDiscovery

Signed-off-by: Kostiantyn Stepaniuk kostia@thirdhash.com