Page MenuHomePhabricator

[avalanche] Track the time of the last new proof received
ClosedPublic

Authored by Fabien on Tue, Jul 20, 14:53.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Maniphest Tasks
Restricted Maniphest Task
Commits
rABCd6cc6acd5065: [avalanche] Track the time of the last new proof received
Summary

Similar to what is done with blocks and txs, this remembers for each peer the time at which the last new (previously unknown) and valid proof is received.
This time is part of the peer stats and can be retrieved via the getpeerinfo RPC if avalanche is enabled.
The intent is to use that value for the peer eviction logic, but this is not part of this diff.

Depends on D9818.

Ref T1611.

Test Plan
./test/functional/test_runner.py rpc_net

Diff Detail

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