aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2014-07-12 00:03:10 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2014-10-14 15:42:01 -0700
commitad6e6017127ec2a3a8d1a71aaab7a6e945c5b0f9 (patch)
tree355891e570b9ad12a522d35a43b707923b9e0ea3 /src/main.h
parent341735eb8f42e898cf9d4d130709471e5d01abe2 (diff)
RPC additions after headers-first
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h
index 674f2fe4a4..7939b087ec 100644
--- a/src/main.h
+++ b/src/main.h
@@ -118,6 +118,9 @@ extern bool fIsBareMultisigStd;
extern unsigned int nCoinCacheSize;
extern CFeeRate minRelayTxFee;
+// Best header we've seen so far (used for getheaders queries' starting points).
+extern CBlockIndex *pindexBestHeader;
+
// Minimum disk space required - used in CheckDiskSpace()
static const uint64_t nMinDiskSpace = 52428800;
@@ -199,6 +202,8 @@ bool AcceptToMemoryPool(CTxMemPool& pool, CValidationState &state, const CTransa
struct CNodeStateStats {
int nMisbehavior;
int nSyncHeight;
+ int nCommonHeight;
+ std::vector<int> vHeightInFlight;
};
struct CDiskTxPos : public CDiskBlockPos