mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-10 06:39:15 +02:00
refactor: rename BlockKey to BlockRef
This commit is contained in:
@@ -41,12 +41,6 @@ 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.
|
||||
|
||||
20
src/interfaces/types.h
Normal file
20
src/interfaces/types.h
Normal file
@@ -0,0 +1,20 @@
|
||||
// Copyright (c) 2024 The Bitcoin Core developers
|
||||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#ifndef BITCOIN_INTERFACES_TYPES_H
|
||||
#define BITCOIN_INTERFACES_TYPES_H
|
||||
|
||||
#include <uint256.h>
|
||||
|
||||
namespace interfaces {
|
||||
|
||||
//! Hash/height pair to help track and identify blocks.
|
||||
struct BlockRef {
|
||||
uint256 hash;
|
||||
int height = -1;
|
||||
};
|
||||
|
||||
} // namespace interfaces
|
||||
|
||||
#endif // BITCOIN_INTERFACES_TYPES_H
|
||||
Reference in New Issue
Block a user