diff options
author | Gregory Maxwell <greg@xiph.org> | 2015-11-30 22:56:47 -0800 |
---|---|---|
committer | Gregory Maxwell <greg@xiph.org> | 2015-11-30 22:58:43 -0800 |
commit | c143c499c85bbe99e3036de21eeffb73d61cd265 (patch) | |
tree | 705f433611001e6a03a19972086243af034d4ffa /src/test | |
parent | 438ee59839ad49bf629452279478462c987b7137 (diff) | |
parent | 996d3117c7b00093afbeaf1ec9174475fbd9df2e (diff) |
Merge pull request #7072
996d311 [RPC] Add transaction size to JSON output (Nick)
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/rpc_tests.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/rpc_tests.cpp b/src/test/rpc_tests.cpp index 2a486f08e4..ce22975005 100644 --- a/src/test/rpc_tests.cpp +++ b/src/test/rpc_tests.cpp @@ -72,6 +72,7 @@ BOOST_AUTO_TEST_CASE(rpc_rawparams) BOOST_CHECK_THROW(CallRPC("decoderawtransaction DEADBEEF"), runtime_error); string rawtx = "0100000001a15d57094aa7a21a28cb20b59aab8fc7d1149a3bdbcddba9c622e4f5f6a99ece010000006c493046022100f93bb0e7d8db7bd46e40132d1f8242026e045f03a0efe71bbb8e3f475e970d790221009337cd7f1f929f00cc6ff01f03729b069a7c21b59b1736ddfee5db5946c5da8c0121033b9b137ee87d5a812d6f506efdd37f0affa7ffc310711c06c7f3e097c9447c52ffffffff0100e1f505000000001976a9140389035a9225b3839e2bbf32d826a1e222031fd888ac00000000"; BOOST_CHECK_NO_THROW(r = CallRPC(string("decoderawtransaction ")+rawtx)); + BOOST_CHECK_EQUAL(find_value(r.get_obj(), "size").get_int(), 193); BOOST_CHECK_EQUAL(find_value(r.get_obj(), "version").get_int(), 1); BOOST_CHECK_EQUAL(find_value(r.get_obj(), "locktime").get_int(), 0); BOOST_CHECK_THROW(r = CallRPC(string("decoderawtransaction ")+rawtx+" extra"), runtime_error); |