diff options
| author | Pieter Wuille <[email protected]> | 2013-10-13 22:15:48 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2013-11-01 00:54:28 +0100 |
| commit | 85eb2cef33fcf3e5c785d54b172eb3e8f932e3cb (patch) | |
| tree | 39a1d1c94bb791552ae8f9810767efedc3e84107 /src/txdb.cpp | |
| parent | Merge pull request #3159 (diff) | |
| download | discoin-85eb2cef33fcf3e5c785d54b172eb3e8f932e3cb.tar.xz discoin-85eb2cef33fcf3e5c785d54b172eb3e8f932e3cb.zip | |
Do not use the redundant BestInvalidWork record in the block database.
As block index entries have a flag for marking invalid blocks, the
'best invalid work' information can be derived from there. In addition,
remove the global from main.h
Diffstat (limited to 'src/txdb.cpp')
| -rw-r--r-- | src/txdb.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/txdb.cpp b/src/txdb.cpp index 5e7b78296..27d6caf4d 100644 --- a/src/txdb.cpp +++ b/src/txdb.cpp @@ -74,13 +74,9 @@ bool CBlockTreeDB::WriteBlockIndex(const CDiskBlockIndex& blockindex) return Write(make_pair('b', blockindex.GetBlockHash()), blockindex); } -bool CBlockTreeDB::ReadBestInvalidWork(CBigNum& bnBestInvalidWork) -{ - return Read('I', bnBestInvalidWork); -} - bool CBlockTreeDB::WriteBestInvalidWork(const CBigNum& bnBestInvalidWork) { + // Obsolete; only written for backward compatibility. return Write('I', bnBestInvalidWork); } |