Add additional failsafe else statement
@@ -327,8 +327,9 @@ bool CheckTransaction(const CTransaction& tx, CValidationState &state, bool fChe
return state.DoS(0, false, REJECT_INVALID, "bad-mempool-txns-asset-reissued-amount-isn't-zero");
}
}
+ } else {
+ return state.DoS(0, false, REJECT_INVALID, "bad-asset-type-not-any-of-the-main-three");
}
-
}
}
