PrevUpHomeNext

isCurrent

Whether a validation is still current.

Synopsis
bool
isCurrent(
    ValidationParms const& p,
    NetClock::time_point now,
    NetClock::time_point signTime,
    NetClock::time_point seenTime);
Description

Determines whether a validation can still be considered the current validation from a node based on when it was signed by that node and first seen by this node.

Parameters

Name

Description

p

|6|ValidationParms with timing parameters

now

Current time

signTime

When the validation was signed

seenTime

When the validation was first seen locally

Header

#include <ripple/consensus/Validations.h>


PrevUpHomeNext