diff options
Diffstat (limited to 'src/script/script.h')
-rw-r--r-- | src/script/script.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/script/script.h b/src/script/script.h index 9c22cb908c..e3af4a6fd9 100644 --- a/src/script/script.h +++ b/src/script/script.h @@ -194,7 +194,10 @@ public: m_value = n; } - explicit CScriptNum(const std::vector<unsigned char>& vch, bool fRequireMinimal) + static const size_t nDefaultMaxNumSize = 4; + + explicit CScriptNum(const std::vector<unsigned char>& vch, bool fRequireMinimal, + const size_t nMaxNumSize = nDefaultMaxNumSize) { if (vch.size() > nMaxNumSize) { throw scriptnum_error("script number overflow"); @@ -317,8 +320,6 @@ public: return result; } - static const size_t nMaxNumSize = 4; - private: static int64_t set_vch(const std::vector<unsigned char>& vch) { |