aboutsummaryrefslogtreecommitdiff
path: root/src/chain.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2017-04-16 06:57:11 -0700
committerPieter Wuille <pieter.wuille@gmail.com>2017-06-26 10:45:48 -0700
commitb3a279cd58d9ae0e107c7fee81f598635e53f9e1 (patch)
tree4ca31d34f211a7fb926e81c8fef27c5cd5f96ccc /src/chain.h
parent234ffc677ee58591b139695bf92bbd6f504ee91a (diff)
downloadbitcoin-b3a279cd58d9ae0e107c7fee81f598635e53f9e1.tar.xz
[MOVEONLY] Move LastCommonAncestor to chain
Diffstat (limited to 'src/chain.h')
-rw-r--r--src/chain.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/chain.h b/src/chain.h
index de120d2d75..c5304b7d6f 100644
--- a/src/chain.h
+++ b/src/chain.h
@@ -362,6 +362,9 @@ public:
arith_uint256 GetBlockProof(const CBlockIndex& block);
/** Return the time it would take to redo the work difference between from and to, assuming the current hashrate corresponds to the difficulty at tip, in seconds. */
int64_t GetBlockProofEquivalentTime(const CBlockIndex& to, const CBlockIndex& from, const CBlockIndex& tip, const Consensus::Params&);
+/** Find the forking point between two chain tips. */
+const CBlockIndex* LastCommonAncestor(const CBlockIndex* pa, const CBlockIndex* pb);
+
/** Used to marshal pointers into hashes for db storage. */
class CDiskBlockIndex : public CBlockIndex