Consensus: Refactor: Decouple CValidationState from main::AbortNode()

This commit is contained in:
Cory Fields
2015-01-16 18:57:14 -05:00
committed by Jorge Timón
parent ac75bafafd
commit 27afcd89db
2 changed files with 27 additions and 33 deletions

View File

@@ -228,8 +228,6 @@ void UnlinkPrunedFiles(std::set<int>& setFilesToPrune);
/** Create a new block index entry for a given block hash */
CBlockIndex * InsertBlockIndex(uint256 hash);
/** Abort with a message */
bool AbortNode(const std::string &msg, const std::string &userMessage="");
/** Get statistics from node state */
bool GetNodeStateStats(NodeId nodeid, CNodeStateStats &stats);
/** Increase a node's misbehavior score. */
@@ -495,10 +493,6 @@ public:
mode = MODE_ERROR;
return false;
}
bool Abort(const std::string &msg) {
AbortNode(msg);
return Error(msg);
}
bool IsValid() const {
return mode == MODE_VALID;
}