diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2012-04-21 01:37:34 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2012-04-21 01:37:34 +0200 |
commit | e46704dd904192d8731eae1226805252e5252a0e (patch) | |
tree | f666357cc03a91c4be20331983c335d1ad603ad2 /src/test/rpc_tests.cpp | |
parent | 9862229d4d852279b937c18cdbe076418585844e (diff) |
Expose CRPCTable via bitcoinrpc.h for testing
Diffstat (limited to 'src/test/rpc_tests.cpp')
-rw-r--r-- | src/test/rpc_tests.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/test/rpc_tests.cpp b/src/test/rpc_tests.cpp index 87462f765b..7a438e5d51 100644 --- a/src/test/rpc_tests.cpp +++ b/src/test/rpc_tests.cpp @@ -3,16 +3,11 @@ #include "base58.h" #include "util.h" -#include "json/json_spirit_reader_template.h" -#include "json/json_spirit_writer_template.h" -#include "json/json_spirit_utils.h" +#include "bitcoinrpc.h" using namespace std; using namespace json_spirit; -typedef Value(*rpcfn_type)(const Array& params, bool fHelp); -extern map<string, rpcfn_type> mapCallTable; - BOOST_AUTO_TEST_SUITE(rpc_tests) static Array @@ -36,7 +31,7 @@ struct TestNetFixture BOOST_FIXTURE_TEST_CASE(rpc_addmultisig, TestNetFixture) { - rpcfn_type addmultisig = mapCallTable["addmultisigaddress"]; + rpcfn_type addmultisig = tableRPC["addmultisigaddress"]->actor; // old, 65-byte-long: const char* address1Hex = "0434e3e09f49ea168c5bbf53f877ff4206923858aab7c7e1df25bc263978107c95e35065a27ef6f1b27222db0ec97e0e895eaca603d3ee0d4c060ce3d8a00286c8"; |