diff options
author | Ryan Ofsky <ryan@ofsky.org> | 2022-01-17 17:32:19 -0500 |
---|---|---|
committer | Ryan Ofsky <ryan@ofsky.org> | 2022-07-18 13:39:55 -0500 |
commit | addb4f2af183a25ce4a6b6485b5b49575a2ba31b (patch) | |
tree | b6309ded5636d485af52a696e016e8dc235f07b3 /src/interfaces/chain.h | |
parent | 33b4d48cfcdf145f49cb2283ac3e2936a4e23fff (diff) |
indexes, refactor: Remove CBlockIndex* uses in coinstatsindex LookUpOne function
This commit does not change behavior in any way.
Diffstat (limited to 'src/interfaces/chain.h')
-rw-r--r-- | src/interfaces/chain.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/interfaces/chain.h b/src/interfaces/chain.h index 4b192c29cc..ed8df2256c 100644 --- a/src/interfaces/chain.h +++ b/src/interfaces/chain.h @@ -38,6 +38,12 @@ namespace interfaces { class Handler; class Wallet; +//! Hash/height pair to help track and identify blocks. +struct BlockKey { + uint256 hash; + int height = -1; +}; + //! Helper for findBlock to selectively return pieces of block data. If block is //! found, data will be returned by setting specified output variables. If block //! is not found, output variables will keep their previous values. |