mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 06:25:51 +00:00
Compute validated ledger age from signing time
This commit is contained in:
committed by
Nik Bougalis
parent
18299c3f7a
commit
d0b28a6700
@@ -387,6 +387,18 @@ private:
|
||||
return ret;
|
||||
}
|
||||
|
||||
std::vector<uint32_t>
|
||||
getValidationTimes (uint256 const& hash)
|
||||
{
|
||||
std::vector <std::uint32_t> times;
|
||||
ScopedLockType sl (mLock);
|
||||
if (auto j = findSet (hash))
|
||||
for (auto& it : *j)
|
||||
if (it.second->isTrusted())
|
||||
times.push_back (it.second->getSignTime());
|
||||
return times;
|
||||
}
|
||||
|
||||
void flush ()
|
||||
{
|
||||
bool anyNew = false;
|
||||
|
||||
Reference in New Issue
Block a user