Page MenuHomePhabricator

Add "Last Block" and "Last Tx" rows to peer details area
ClosedPublic

Authored by PiRK on Feb 2 2022, 16:23.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC85e5bdc9a1a0: Add "Last Block" and "Last Tx" rows to peer details area
Summary

qt: add RPCConsole::TimeDurationField helper, call systime only once

gui: add "Last Tx" (CNodeStats::nLastTXTime) to peer details

gui: add "Last Block" (CNodeStats::nLastBlockTime) to peer details

This is a backport of core-gui#226
Depends on D10963

Test Plan

ninja && src/qt/bitcoin-qt

Select a peer in the "peers" view, check the new "Last Block/Tx" fields. Wait for a while to see it change from "Never" to a duration.

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable