aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/chain.h
diff options
context:
space:
mode:
authorAntoine Riard <ariard@student.42.fr>2019-07-16 15:20:01 -0400
committerAntoine Riard <ariard@student.42.fr>2020-04-30 14:37:21 -0400
commit0a76287387950bc9c5b634e95c5cd5fb1029f42d (patch)
tree40bc835faca023a5d008e9f315c5dc4918d11cb3 /src/interfaces/chain.h
parentde13363a472ea30dff2f8f55c6ae572281115380 (diff)
[wallet] Move getBlockHash from Chain::Lock interface to simple Chain
Diffstat (limited to 'src/interfaces/chain.h')
-rw-r--r--src/interfaces/chain.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/interfaces/chain.h b/src/interfaces/chain.h
index b85484c11b..c82ade8897 100644
--- a/src/interfaces/chain.h
+++ b/src/interfaces/chain.h
@@ -87,9 +87,6 @@ public:
public:
virtual ~Lock() {}
- //! Get block hash. Height must be valid or this function will abort.
- virtual uint256 getBlockHash(int height) = 0;
-
//! Check that the block is available on disk (i.e. has not been
//! pruned), and contains transactions.
virtual bool haveBlockOnDisk(int height) = 0;
@@ -135,6 +132,9 @@ public:
//! included in the current chain.
virtual Optional<int> getBlockHeight(const uint256& hash) = 0;
+ //! Get block hash. Height must be valid or this function will abort.
+ virtual uint256 getBlockHash(int height) = 0;
+
//! Return whether node has the block and optionally return block metadata
//! or contents.
virtual bool findBlock(const uint256& hash, const FoundBlock& block={}) = 0;