sighash tests without OMIT_TX_COMMENT set
nodes utilizing SighnatureHashOld are no longer on the network
This commit is contained in:
parent
99cd2376d0
commit
e323d352dd
File diff suppressed because it is too large
Load Diff
@ -135,6 +135,7 @@ BOOST_AUTO_TEST_CASE(sighash_test)
|
|||||||
#endif
|
#endif
|
||||||
for (int i=0; i<nRandomTests; i++) {
|
for (int i=0; i<nRandomTests; i++) {
|
||||||
int nHashType = InsecureRand32();
|
int nHashType = InsecureRand32();
|
||||||
|
nHashType &= ~SIGHASH_OMIT_TX_COMMENT; // clear SIGHASH_OMIT_TX_COMMENT - Flag is only used for 0.10.4 compat
|
||||||
CMutableTransaction txTo;
|
CMutableTransaction txTo;
|
||||||
RandomTransaction(txTo, (nHashType & 0x1f) == SIGHASH_SINGLE);
|
RandomTransaction(txTo, (nHashType & 0x1f) == SIGHASH_SINGLE);
|
||||||
CScript scriptCode;
|
CScript scriptCode;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user