diff --git a/src/gtest/test_checktransaction.cpp b/src/gtest/test_checktransaction.cpp index 3849cf367..305977103 100644 --- a/src/gtest/test_checktransaction.cpp +++ b/src/gtest/test_checktransaction.cpp @@ -100,7 +100,7 @@ TEST(checktransaction_tests, BadVersionTooLow) { CTransaction tx(mtx); MockCValidationState state; - EXPECT_CALL(state, DoS(100, false, REJECT_INVALID, "bad-version-too-low", false)).Times(1); + EXPECT_CALL(state, DoS(100, false, REJECT_INVALID, "bad-txns-version-too-low", false)).Times(1); CheckTransactionWithoutProofVerification(tx, state); } diff --git a/src/main.cpp b/src/main.cpp index 58c6300ff..92f30319a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -854,7 +854,7 @@ bool CheckTransactionWithoutProofVerification(const CTransaction& tx, CValidatio // Check transaction version if (tx.nVersion < MIN_TX_VERSION) { return state.DoS(100, error("CheckTransaction(): version too low"), - REJECT_INVALID, "bad-version-too-low"); + REJECT_INVALID, "bad-txns-version-too-low"); } // Transactions can contain empty `vin` and `vout` so long as