sighash tests without OMIT_TX_COMMENT set

nodes utilizing SighnatureHashOld are no longer on the network
This commit is contained in:
Jeremiah Buddenhagen 2018-01-23 14:58:51 -08:00
parent 99cd2376d0
commit e323d352dd
2 changed files with 503 additions and 502 deletions

File diff suppressed because it is too large Load Diff

View File

@ -135,6 +135,7 @@ BOOST_AUTO_TEST_CASE(sighash_test)
#endif
for (int i=0; i<nRandomTests; i++) {
int nHashType = InsecureRand32();
nHashType &= ~SIGHASH_OMIT_TX_COMMENT; // clear SIGHASH_OMIT_TX_COMMENT - Flag is only used for 0.10.4 compat
CMutableTransaction txTo;
RandomTransaction(txTo, (nHashType & 0x1f) == SIGHASH_SINGLE);
CScript scriptCode;