diff options
author | Jon Atack <jon@atack.com> | 2021-02-24 16:26:39 +0100 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2021-02-25 12:25:07 +0100 |
commit | 70d3c5d0b987411873d557440607aa4f3f65b1ec (patch) | |
tree | 99a09fde9811a421a06d9dbaf41977c120a7d1f5 /src/qt/rpcconsole.cpp | |
parent | a21be7c401e1b885bb338645248f40023af7a88f (diff) |
gui: add "Last Block" (CNodeStats::nLastBlockTime) to peer details
Diffstat (limited to 'src/qt/rpcconsole.cpp')
-rw-r--r-- | src/qt/rpcconsole.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp index 3bd6d94a58..5acf8b1cf0 100644 --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -1122,6 +1122,7 @@ void RPCConsole::updateDetailWidget() ui->peerHighBandwidth->setText(bip152_hb_settings); const int64_t time_now{GetSystemTimeInSeconds()}; ui->peerConnTime->setText(GUIUtil::formatDurationStr(time_now - stats->nodeStats.nTimeConnected)); + ui->peerLastBlock->setText(TimeDurationField(time_now, stats->nodeStats.nLastBlockTime)); ui->peerLastTx->setText(TimeDurationField(time_now, stats->nodeStats.nLastTXTime)); ui->peerLastSend->setText(TimeDurationField(time_now, stats->nodeStats.nLastSend)); ui->peerLastRecv->setText(TimeDurationField(time_now, stats->nodeStats.nLastRecv)); |