Deprecate 'Time to Live' fields

This commit is contained in:
Nik Bougalis
2020-03-04 22:31:53 -08:00
parent 2bf3b194fa
commit 567e42e071
5 changed files with 14 additions and 23 deletions

View File

@@ -1605,9 +1605,6 @@ PeerImp::onMessage(std::shared_ptr<protocol::TMProposeSet> const& m)
{
protocol::TMProposeSet& set = *m;
if (set.has_hops() && !cluster())
set.set_hops(set.hops() + 1);
auto const sig = makeSlice(set.signature());
// Preliminary check for the validity of the signature: A DER encoded
@@ -2111,9 +2108,6 @@ PeerImp::onMessage(std::shared_ptr<protocol::TMValidation> const& m)
{
auto const closeTime = app_.timeKeeper().closeTime();
if (m->has_hops() && !cluster())
m->set_hops(m->hops() + 1);
if (m->validation().size() < 50)
{
JLOG(p_journal_.warn()) << "Validation: Too small";