Page MenuHomePhabricator

[backport#16728] move-only: move coins statistics utils out of RPC
ClosedPublic

Authored by majcosta on May 19 2020, 21:42.

Details

Summary

These procedures will later be used in the ChainstateManager to compute
statistics (particularly a content hash) for UTXO sets coming in from
snapshots.


This is a backport of Core PR16728

Test Plan
ninja check-all

Event Timeline

majcosta created this revision.May 19 2020, 21:42
Herald added a reviewer: Restricted Project. · View Herald TranscriptMay 19 2020, 21:43
majcosta requested review of this revision.May 19 2020, 21:43
teamcity edited the summary of this revision. (Show Details)May 19 2020, 21:43

[Bot Message]
One or more PR numbers were detected in the summary.
Links to those PRs have been inserted into the summary for reference.

Fabien requested changes to this revision.May 20 2020, 08:20
Fabien added a subscriber: Fabien.
Fabien added inline comments.
src/node/coinstats.h
10 ↗(On Diff #20312)

Why do you need chain.h ?
Also you're missing the BlockHash definition

This revision now requires changes to proceed.May 20 2020, 08:20
majcosta updated this revision to Diff 20353.May 20 2020, 13:10

replaced unnecessary headers

deadalnix accepted this revision.May 20 2020, 17:33
majcosta updated this revision to Diff 20382.May 20 2020, 19:04

reincluded uint256.h to coinstats.h

Fabien accepted this revision.May 20 2020, 19:20
Fabien added inline comments.
src/node/coinstats.h
22

Keep #include <uint256.h> to avoid indirect inclusions

This revision is now accepted and ready to land.May 20 2020, 19:20