aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2015-01-16 18:57:14 -0500
committerJorge Timón <jtimon@jtimon.cc>2015-05-15 16:05:26 +0200
commit27afcd89db302d87168e0f504ee141dbf0e1ea22 (patch)
treee378199b41e44842552409034e7a084ab9e610bd /src/main.h
parentac75bafafdc394f60f819ede18181682eb5aa662 (diff)
Consensus: Refactor: Decouple CValidationState from main::AbortNode()
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/main.h b/src/main.h
index fcbc4075d2..1fc418daff 100644
--- a/src/main.h
+++ b/src/main.h
@@ -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;
}