Cleanup cheatcatcher

This commit is contained in:
miketout
2018-10-12 22:41:43 -07:00
parent 54036e72cd
commit 1ca4abe444
2 changed files with 9 additions and 6 deletions

View File

@@ -62,12 +62,7 @@ class CCheatList
bool IsCheatInList(const CTransaction &tx, CTransaction *pcheatTx);
// check to see if there are cheat candidates of the same or greater block height in list
bool IsHeightOrGreaterInList(uint32_t height)
{
auto range = orderedCheatCandidates.equal_range(height);
//printf("IsHeightOrGreaterInList: %s\n", range.second == orderedCheatCandidates.end() ? "false" : "true");
return (range.second == orderedCheatCandidates.end());
}
bool IsHeightOrGreaterInList(uint32_t height);
// add a potential cheat transaction to the list. we do this for all stake transactions from orphaned stakes
bool Add(const CTxHolder &txh);