Page MenuHomePhabricator

refactor: move CBlockIndex#ToString() from header to implementation
ClosedPublic

Authored by PiRK on Mon, Apr 29, 11:21.

Details

Summary

which allows dropping tinyformat.h from the header file.

This concludes backport of core#25349
https://github.com/bitcoin/bitcoin/pull/25349/commits/3a61fc56a0ad6ed58570350dcfd9ed2d10239b48

Depends on D16072

Test Plan

ninja all check-all

Diff Detail

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

Event Timeline

PiRK requested review of this revision.Mon, Apr 29, 11:21
Fabien added a subscriber: Fabien.
Fabien added inline comments.
src/chain.h
19 ↗(On Diff #47474)

unrelated ?

Fabien requested changes to this revision.Mon, Apr 29, 13:01
This revision now requires changes to proceed.Mon, Apr 29, 13:01
PiRK requested review of this revision.Mon, Apr 29, 13:55
PiRK added inline comments.
src/chain.h
19 ↗(On Diff #47474)

It is semi-related imo. It should have been removed in D6988 when CBlockIndex was moved to its own module. It was probably initially there for CBlockIndex::ToString()

This revision is now accepted and ready to land.Mon, Apr 29, 15:51