ScriptBuilder: make bigNum() public

We will need this to construct genesis block scriptSigs, which use
a pushdata of a small value that would, optimally encoded, be pushed
via OP_n.
This commit is contained in:
Andreas Schildbach 2025-03-09 13:46:05 +01:00
parent 281bb3ab40
commit 4fe444ddb2

View file

@ -163,7 +163,7 @@ public class ScriptBuilder {
* *
* @see #number(long) * @see #number(long)
*/ */
protected ScriptBuilder bigNum(long num) { public ScriptBuilder bigNum(long num) {
final byte[] data; final byte[] data;
if (num == 0) { if (num == 0) {