diff --git a/src/sigma/coin.cpp b/src/sigma/coin.cpp index 1c28d33ed5..f4e7170746 100644 --- a/src/sigma/coin.cpp +++ b/src/sigma/coin.cpp @@ -121,7 +121,7 @@ bool IntegerToDenomination(int64_t value, CoinDenomination& denom_out) { bool IntegerToDenomination(int64_t value, CoinDenomination& denom_out, CValidationState &state) { switch (value) { default: - return state.DoS(100, error("CheckSigmaTransaction : invalid denomination value, unable to convert to enum")); + return false; case 5 * CENT: denom_out = CoinDenomination::SIGMA_DENOM_0_05; break; diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 2000e5c761..0c34c38949 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -2207,7 +2207,7 @@ bool CWalletTx::RelayWalletTransaction(CConnman* connman) } } } - LogPrintf("CWalletTx::RelayWalletTransaction() --> invalid condition\n"); + return false; }