diff options
| author | Ross Nicoll <[email protected]> | 2018-01-08 19:32:01 +0000 |
|---|---|---|
| committer | Ross Nicoll <[email protected]> | 2018-09-19 21:09:16 +0100 |
| commit | ec40df46b50f1e1a21682208a9b3a1802db9002a (patch) | |
| tree | 057a6b6fd23de69986999c1786406378230b3209 /src/chain.h | |
| parent | Add Dogecoin current fee calculation logic (#1413) (diff) | |
| download | discoin-ec40df46b50f1e1a21682208a9b3a1802db9002a.tar.xz discoin-ec40df46b50f1e1a21682208a9b3a1802db9002a.zip | |
Check only the base block version (#1411)
Check only the base block version when looking for unexpected version numbers
Diffstat (limited to 'src/chain.h')
| -rw-r--r-- | src/chain.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/chain.h b/src/chain.h index d9a4bdd69..7b568eebb 100644 --- a/src/chain.h +++ b/src/chain.h @@ -351,6 +351,12 @@ public: { return nVersion & CPureBlockHeader::VERSION_AUXPOW; } + + /* Analyse the block version. */ + inline int GetBaseVersion() const + { + return CPureBlockHeader::GetBaseVersion(nVersion); + } }; arith_uint256 GetBlockProof(const CBlockIndex& block); |