Page MenuHomePhabricator

Make validation interface capable of signalling header presync
ClosedPublic

Authored by PiRK on Jan 15 2024, 14:07.

Details

Summary

This makes a number of changes:

  • Get rid of the verification_progress argument in the node interface NotifyHeaderTip (it was always 0.0).
  • Instead of passing a CBlockIndex* in the UI interface's NotifyHeaderTip, send separate height, timestamp fields. This is becuase in headers presync, no actual CBlockIndex object is available.
  • Add a bool presync argument to both of the above, to identify signals pertaining to the first headers sync phase.

Emit NotifyHeaderTip signals for pre-synchronization progress

This is a partial backport of core#25717
https://github.com/bitcoin/bitcoin/pull/25717/commits/376086fc5a187f5b2ab3a0d1202ed4e6c22bdb50
https://github.com/bitcoin/bitcoin/pull/25717/commits/738421c50f2dbd7395b50a5dbdf6168b07435e62

Depends on D15169

Test Plan

ninja all check-all

Run a header sync on main net

Diff Detail

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

Event Timeline

PiRK requested review of this revision.Jan 15 2024, 14:07
PiRK edited the summary of this revision. (Show Details)

squash with the next commit, these two are related

This revision is now accepted and ready to land.Jan 15 2024, 20:13