HomePhabricator

Store the last 20 headers reception time to a file

Description

Store the last 20 headers reception time to a file

Summary:
And load it at startup. This is bootstrapping the RTT algorithm so the difficulty might only be over-estimated after a restart and miners won't mine rejected blocks.

This is opt-in because most nodes simply don't need the feature, it's an optimization that only impacts the miners.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, roqqit, PiRK

Reviewed By: #bitcoin_abc, roqqit, PiRK

Subscribers: PiRK, roqqit

Differential Revision: https://reviews.bitcoinabc.org/D16791

Details

Provenance
FabienAuthored on Sep 19 2024, 14:43
FabienPushed on Sep 24 2024, 14:30
Reviewer
Restricted Project
Differential Revision
D16791: Store the last 20 headers reception time to a file
Parents
rABC1528093c99f8: [chronik] Add an avalanche invalidated block ws message
Branches
Unknown
Tags
Unknown