aboutsummaryrefslogtreecommitdiff
path: root/src/index
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2022-02-16 14:11:19 -0500
committerCarl Dong <contact@carldong.me>2022-05-23 14:52:23 -0400
commit1352e410a5b84070279ff28399083cb3ab278593 (patch)
tree09eb4ce4455f98a8c1c875e4aefb697ead136245 /src/index
parent524463daf6a10b20a4e20116a68101a684929eda (diff)
downloadbitcoin-1352e410a5b84070279ff28399083cb3ab278593.tar.xz
coinstats: Separate hasher/index lookup codepaths
Split out ComputeUTXOStats and LookupUTXOStatsWithIndex from GetUTXOStats, since the hashing and indexing codepaths are quite disparate in practice. Also allow add a constructor to CCoinsStats for it to be constructed from a a block height and hash. This is used in both codepaths. Also add a note in GetUTXOStats documenting a behaviour quirk that predates this patchset. [META] This allows the hashing codepath to be moved to a separate file in a future commit, decoupling callers that only rely on the hashing codepath from the indexing one. This is key for libbitcoinkernel, which needs to have the hashing codepath for AssumeUTXO, but does not wish to be coupled with indexes.
Diffstat (limited to 'src/index')
0 files changed, 0 insertions, 0 deletions