add auto purge of orphans from before notarisation.

This commit is contained in:
blackjok3r
2019-01-24 17:16:42 +08:00
parent ec1abe2be2
commit c3df1b8747
3 changed files with 69 additions and 1 deletions

View File

@@ -806,7 +806,7 @@ bool GetAddressUnspent(uint160 addressHash, int type,
bool WriteBlockToDisk(CBlock& block, CDiskBlockPos& pos, const CMessageHeader::MessageStartChars& messageStart);
bool ReadBlockFromDisk(CBlock& block, const CDiskBlockPos& pos,bool checkPOW);
bool ReadBlockFromDisk(CBlock& block, const CBlockIndex* pindex,bool checkPOW);
bool RemoveOrphanedBlocks(int32_t notarized_height);
/** Functions for validating blocks and updating the block tree */