Add tests for expiryheight parameter of RPC createrawtransaction.

This commit is contained in:
Simon
2018-07-30 10:24:10 -07:00
parent 87d55e1322
commit f01c11bd0f
2 changed files with 28 additions and 0 deletions

View File

@@ -73,6 +73,8 @@ BOOST_AUTO_TEST_CASE(rpc_rawparams)
BOOST_CHECK_THROW(CallRPC("createrawtransaction {} {}"), runtime_error);
BOOST_CHECK_NO_THROW(CallRPC("createrawtransaction [] {}"));
BOOST_CHECK_THROW(CallRPC("createrawtransaction [] {} extra"), runtime_error);
BOOST_CHECK_NO_THROW(CallRPC("createrawtransaction [] {} 0"));
BOOST_CHECK_THROW(CallRPC("createrawtransaction [] {} 0 0"), runtime_error); // Overwinter is not active
BOOST_CHECK_THROW(CallRPC("decoderawtransaction"), runtime_error);
BOOST_CHECK_THROW(CallRPC("decoderawtransaction null"), runtime_error);