/ src / interfaces / types.h
types.h
 1  // Copyright (c) 2024-present The Bitcoin Core developers
 2  // Distributed under the MIT software license, see the accompanying
 3  // file COPYING or http://www.opensource.org/licenses/mit-license.php.
 4  
 5  #ifndef BITCOIN_INTERFACES_TYPES_H
 6  #define BITCOIN_INTERFACES_TYPES_H
 7  
 8  #include <uint256.h>
 9  
10  namespace interfaces {
11  
12  //! Hash/height pair to help track and identify blocks.
13  struct BlockRef {
14      uint256 hash;
15      int height = -1;
16  };
17  
18  } // namespace interfaces
19  
20  #endif // BITCOIN_INTERFACES_TYPES_H