public bool Error(string strRejectReasonIn = "") { if(mode == mode_state.MODE_VALID) strRejectReason = strRejectReasonIn; mode = mode_state.MODE_ERROR; return false; }
public ValidationState(Network network) { _Network = network; mode = mode_state.MODE_VALID; nDoS = 0; corruptionPossible = false; CheckProofOfWork = true; CheckMerkleRoot = true; }
public bool Error(string strRejectReasonIn = "") { if (mode == mode_state.MODE_VALID) { strRejectReason = strRejectReasonIn; } mode = mode_state.MODE_ERROR; return(false); }
bool DoS(int level, bool ret = false, RejectCode chRejectCodeIn = 0, string strRejectReasonIn = "", bool corruptionIn = false) { chRejectCode = chRejectCodeIn; strRejectReason = strRejectReasonIn; corruptionPossible = corruptionIn; if(mode == mode_state.MODE_ERROR) return ret; nDoS += level; mode = mode_state.MODE_INVALID; return ret; }
bool DoS(int level, bool ret = false, RejectCode chRejectCodeIn = 0, string strRejectReasonIn = "", bool corruptionIn = false) { chRejectCode = chRejectCodeIn; corruptionPossible = corruptionIn; if (mode == mode_state.MODE_ERROR) { return(ret); } nDoS += level; mode = mode_state.MODE_INVALID; return(ret); }
public bool Error(string strRejectReasonIn = "") { mode = mode_state.MODE_ERROR; return(false); }