Page MenuHomePhabricator

net, rpc: expose nLastBlockTime/nLastTXTime as last block/last_transaction in getpeerinfo
ClosedPublic

Authored by Fabien on Mar 18 2021, 20:01.

Details

Summary
This PR adds inbound peer eviction criteria nLastBlockTime and
nLastTXTime to CNodeStats and CNode::copyStats, which then allows
exposing them in the next commit as last_transaction and last_block Unix
Epoch Time fields in RPC getpeerinfo.

Backport of core#19731.

Depends on D9324 and D9330.

Test Plan
ninja all check-all

Diff Detail

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