Skip to content

Commit

Permalink
Improve cucumber tx reliability
Browse files Browse the repository at this point in the history
  • Loading branch information
SWvheerden committed Jul 29, 2021
1 parent 0dfd4cb commit ab7a431
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions integration_tests/helpers/transactionBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ class TransactionBuilder {
};
let key = Math.floor(Math.random() * 500 + 1);
let privateKey = Buffer.from(toLittleEndian(key, 256)).toString("hex");
let scriptKey = Math.floor(Math.random() * 500 + 1);
let scriptKey = Math.floor(Math.random() * 500000000000 + 1);
let scriptPrivateKey = Buffer.from(toLittleEndian(scriptKey, 256)).toString(
"hex"
);
Expand Down Expand Up @@ -339,7 +339,9 @@ class TransactionBuilder {
flags: 1,
maturity: lockHeight,
};
let scriptOffsetPrivateKeyNum = Math.floor(Math.random() * 500 + 1);
let scriptOffsetPrivateKeyNum = Math.floor(
Math.random() * 500000000000 + 1
);
let scriptOffsetPrivateKey = Buffer.from(
toLittleEndian(scriptOffsetPrivateKeyNum, 256)
).toString("hex");
Expand Down

0 comments on commit ab7a431

Please sign in to comment.