|
|
@ -237,8 +237,14 @@ BOOST_AUTO_TEST_CASE(sighash_from_data) |
|
|
|
stream >> tx; |
|
|
|
|
|
|
|
CValidationState state; |
|
|
|
BOOST_CHECK_MESSAGE(CheckTransactionWithoutProofVerification(tx, state), strTest); |
|
|
|
BOOST_CHECK(state.IsValid()); |
|
|
|
if (tx.nVersion < MIN_TX_VERSION) { |
|
|
|
// Transaction must be invalid
|
|
|
|
BOOST_CHECK_MESSAGE(!CheckTransactionWithoutProofVerification(tx, state), strTest); |
|
|
|
BOOST_CHECK(!state.IsValid()); |
|
|
|
} else { |
|
|
|
BOOST_CHECK_MESSAGE(CheckTransactionWithoutProofVerification(tx, state), strTest); |
|
|
|
BOOST_CHECK(state.IsValid()); |
|
|
|
} |
|
|
|
|
|
|
|
std::vector<unsigned char> raw = ParseHex(raw_script); |
|
|
|
scriptCode.insert(scriptCode.end(), raw.begin(), raw.end()); |
|
|
|