MCPcopy Create free account
hub / github.com/Bitcoin-ABC/bitcoin-abc / CheckCreateVch

Function CheckCreateVch

src/test/scriptnum_tests.cpp:35–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 0x7FFF, 0x8000, 0xFFFF, 0x10000};
34
35static void CheckCreateVch(const int64_t &num, const size_t nMaxNumSize) {
36 // If scriptnum doesn't fit in nMaxNumSize, throws scriptnum_overflow_error
37 CScriptNum(CScriptNum(num).getvch(), false, nMaxNumSize);
38}
39
40static void CheckAdd(const int64_t &num1, const int64_t &num2) {
41 const CScriptNum scriptnum1(num1);

Callers 1

RunCreateFunction · 0.85

Calls 2

getvchMethod · 0.80
CScriptNumClass · 0.50

Tested by

no test coverage detected