diff options
author | Peter Todd <pete@petertodd.org> | 2014-09-29 01:00:01 -0400 |
---|---|---|
committer | Peter Todd <pete@petertodd.org> | 2015-05-09 04:29:47 -0400 |
commit | 99088d60d8a7747c6d1a7fd5d8cd388be1b3e138 (patch) | |
tree | 07b2c24e6eefb91b9bbc749824824d3e62625759 /src/test/scriptnum_tests.cpp | |
parent | 7eb66182f3799e695f655e40d58ed2fdaa7044e1 (diff) |
Make CScriptNum() take nMaxNumSize as an argument
While the existing numeric opcodes are all limited to 4-byte bignum
arguments, new opcodes will need different limits.
Diffstat (limited to 'src/test/scriptnum_tests.cpp')
-rw-r--r-- | src/test/scriptnum_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/scriptnum_tests.cpp b/src/test/scriptnum_tests.cpp index 24c7dd3d5a..d95724dbe1 100644 --- a/src/test/scriptnum_tests.cpp +++ b/src/test/scriptnum_tests.cpp @@ -145,7 +145,7 @@ static void RunCreate(const int64_t& num) { CheckCreateInt(num); CScriptNum scriptnum(num); - if (scriptnum.getvch().size() <= CScriptNum::nMaxNumSize) + if (scriptnum.getvch().size() <= CScriptNum::nDefaultMaxNumSize) CheckCreateVch(num); else { |