aboutsummaryrefslogtreecommitdiff
path: root/src/test/rpc_tests.cpp
diff options
context:
space:
mode:
authorMax K <[email protected]>2017-12-28 22:41:29 +0100
committerRoss Nicoll <[email protected]>2018-09-19 19:24:06 +0100
commit60f8ff05e429556f13570b72e9c9b25197199354 (patch)
tree61587c356773267f523f312564b4fbf2bb5dba75 /src/test/rpc_tests.cpp
parentModify chain consensus parameters to be height aware (#1396) (diff)
downloaddiscoin-60f8ff05e429556f13570b72e9c9b25197199354.tar.xz
discoin-60f8ff05e429556f13570b72e9c9b25197199354.zip
Fix 1.14 unit tests (#1408)
* Fix BlockEncodings test by setting a legacy block version * Fix RPC test by adding missing RPC call * Add missing regtest genesis hashes
Diffstat (limited to 'src/test/rpc_tests.cpp')
-rw-r--r--src/test/rpc_tests.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/rpc_tests.cpp b/src/test/rpc_tests.cpp
index 89317fe2d..116096707 100644
--- a/src/test/rpc_tests.cpp
+++ b/src/test/rpc_tests.cpp
@@ -117,6 +117,7 @@ BOOST_AUTO_TEST_CASE(rpc_rawsign)
std::string notsigned = r.get_str();
std::string privkey1 = "\"QSGT8Sd8z8aBcc3o7HAGqeEicLjTCU8JzbVmUZcvp4hCx66fsLPE\"";
std::string privkey2 = "\"QR6Yov9ta4v5JD38kFRx56Z5dYm4TsCLACrEXeeF5AdeBCNKeB44\"";
+ r = CallRPC(std::string("signrawtransaction ")+notsigned+" "+prevout+" "+"[]");
BOOST_CHECK(find_value(r.get_obj(), "complete").get_bool() == false);
r = CallRPC(std::string("signrawtransaction ")+notsigned+" "+prevout+" "+"["+privkey1+","+privkey2+"]");
BOOST_CHECK(find_value(r.get_obj(), "complete").get_bool() == true);