Fix sighash tests
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -119,8 +119,11 @@ void static RandomTransaction(CMutableTransaction &tx, bool fSingle) {
|
|||||||
if (tx.nVersion >= 2) {
|
if (tx.nVersion >= 2) {
|
||||||
for (int pour = 0; pour < pours; pour++) {
|
for (int pour = 0; pour < pours; pour++) {
|
||||||
CPourTx pourtx;
|
CPourTx pourtx;
|
||||||
pourtx.vpub_old = insecure_rand() % 100000000;
|
if (insecure_rand() % 2 == 0) {
|
||||||
pourtx.vpub_new = insecure_rand() % 100000000;
|
pourtx.vpub_old = insecure_rand() % 100000000;
|
||||||
|
} else {
|
||||||
|
pourtx.vpub_new = insecure_rand() % 100000000;
|
||||||
|
}
|
||||||
RandomScript(pourtx.scriptPubKey);
|
RandomScript(pourtx.scriptPubKey);
|
||||||
RandomScript(pourtx.scriptSig);
|
RandomScript(pourtx.scriptSig);
|
||||||
pourtx.anchor = GetRandHash();
|
pourtx.anchor = GetRandHash();
|
||||||
|
|||||||
Reference in New Issue
Block a user