diff options
| author | Jeff Garzik <[email protected]> | 2012-05-17 08:47:54 -0700 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2012-05-17 08:47:54 -0700 |
| commit | d17ac27a727a7a942aea6c5d8b549e4ce56f34a7 (patch) | |
| tree | 9a60cf439ec96e9b06e3b59d689a3b0bf794c34a /src/main.h | |
| parent | Merge pull request #1198 from jgarzik/addrman (diff) | |
| parent | Remove dead code: CTxDB::EraseBlockIndex(), CBlockIndex::EraseBlockFromDisk() (diff) | |
| download | discoin-d17ac27a727a7a942aea6c5d8b549e4ce56f34a7.tar.xz discoin-d17ac27a727a7a942aea6c5d8b549e4ce56f34a7.zip | |
Merge pull request #1316 from jgarzik/dead-code
Remove dead code: CTxDB::EraseBlockIndex(), CBlockIndex::EraseBlockFromDisk()
Diffstat (limited to 'src/main.h')
| -rw-r--r-- | src/main.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/main.h b/src/main.h index 331b16b50..d9eea2a32 100644 --- a/src/main.h +++ b/src/main.h @@ -1124,21 +1124,6 @@ public: return CheckProofOfWork(GetBlockHash(), nBits); } - bool EraseBlockFromDisk() - { - // Open history file - CAutoFile fileout = CAutoFile(OpenBlockFile(nFile, nBlockPos, "rb+"), SER_DISK, CLIENT_VERSION); - if (!fileout) - return false; - - // Overwrite with empty null block - CBlock block; - block.SetNull(); - fileout << block; - - return true; - } - enum { nMedianTimeSpan=11 }; int64 GetMedianTimePast() const |