fix rpx_wallet_tests

This commit is contained in:
Alfredo Garcia 2020-02-17 09:52:40 -03:00
parent 3fb8af512c
commit a8f6b8c2e5
1 changed files with 2 additions and 1 deletions

View File

@ -310,7 +310,8 @@ BOOST_AUTO_TEST_CASE(rpc_wallet)
* getblock
*/
BOOST_CHECK_THROW(CallRPC("getblock too many args"), runtime_error);
BOOST_CHECK_THROW(CallRPC("getblock -1"), runtime_error);
BOOST_CHECK_NO_THROW(CallRPC("getblock -1")); // negative heights relative are allowed
BOOST_CHECK_THROW(CallRPC("getblock -2147483647"), runtime_error); // allowed, but chain tip - height < 0
BOOST_CHECK_THROW(CallRPC("getblock 2147483647"), runtime_error); // allowed, but > height of active chain tip
BOOST_CHECK_THROW(CallRPC("getblock 2147483648"), runtime_error); // not allowed, > int32 used for nHeight
BOOST_CHECK_THROW(CallRPC("getblock 100badchars"), runtime_error);