Page MenuHomePhabricator

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

Authored by PiRK on Apr 29 2024, 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

Event Timeline

PiRK requested review of this revision.Apr 29 2024, 11:21
Fabien added a subscriber: Fabien.
Fabien added inline comments.
src/chain.h
19

unrelated ?

Fabien requested changes to this revision.Apr 29 2024, 13:01
This revision now requires changes to proceed.Apr 29 2024, 13:01
PiRK requested review of this revision.Apr 29 2024, 13:55
PiRK added inline comments.
src/chain.h
19

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.Apr 29 2024, 15:51