@@ -1161,7 +1161,7 @@ UniValue superblockage(const UniValue& params, bool fHelp)
11611161
11621162 const NN::SuperblockPtr superblock = NN::Quorum::CurrentSuperblock ();
11631163
1164- res.pushKV (" Superblock Age" , superblock.Age ());
1164+ res.pushKV (" Superblock Age" , superblock.Age (GetAdjustedTime () ));
11651165 res.pushKV (" Superblock Timestamp" , TimestampToHRDate (superblock.m_timestamp ));
11661166 res.pushKV (" Superblock Block Number" , superblock.m_height );
11671167 res.pushKV (" Pending Superblock Height" , NN::Quorum::PendingSuperblock ().m_height );
@@ -1717,13 +1717,14 @@ UniValue superblockaverage(const UniValue& params, bool fHelp)
17171717 LOCK (cs_main);
17181718
17191719 const NN::SuperblockPtr superblock = NN::Quorum::CurrentSuperblock ();
1720+ const int64_t now = GetAdjustedTime ();
17201721
17211722 res.pushKV (" beacon_count" , (uint64_t )superblock->m_cpids .TotalCount ());
17221723 res.pushKV (" beacon_participant_count" , (uint64_t )superblock->m_cpids .size ());
17231724 res.pushKV (" average_magnitude" , superblock->m_cpids .AverageMagnitude ());
17241725 res.pushKV (" superblock_valid" , superblock->WellFormed ());
1725- res.pushKV (" Superblock Age" , superblock.Age ());
1726- res.pushKV (" Dire Need of Superblock" , NN::Quorum::SuperblockNeeded ());
1726+ res.pushKV (" Superblock Age" , superblock.Age (now ));
1727+ res.pushKV (" Dire Need of Superblock" , NN::Quorum::SuperblockNeeded (now ));
17271728
17281729 return res;
17291730}
0 commit comments