diff options
| author | Pieter Wuille <[email protected]> | 2014-07-12 00:03:10 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2014-10-14 15:42:01 -0700 |
| commit | ad6e6017127ec2a3a8d1a71aaab7a6e945c5b0f9 (patch) | |
| tree | 355891e570b9ad12a522d35a43b707923b9e0ea3 /src/main.h | |
| parent | Headers-first synchronization (diff) | |
| download | discoin-ad6e6017127ec2a3a8d1a71aaab7a6e945c5b0f9.tar.xz discoin-ad6e6017127ec2a3a8d1a71aaab7a6e945c5b0f9.zip | |
RPC additions after headers-first
Diffstat (limited to 'src/main.h')
| -rw-r--r-- | src/main.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h index 674f2fe4a..7939b087e 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 |