Jack Grigg
7 years ago
No known key found for this signature in database
GPG Key ID: 665DBCD284F7DAFF
2 changed files with
9 additions and
9 deletions
-
src/test/rpc_wallet_tests.cpp
-
src/test/test_bitcoin.h
|
|
@ -1175,7 +1175,7 @@ BOOST_AUTO_TEST_CASE(rpc_z_sendmany_internals) |
|
|
|
try { |
|
|
|
proxy.perform_joinsplit(info); |
|
|
|
} catch (const std::runtime_error & e) { |
|
|
|
BOOST_CHECK( string(e.what()).find("JoinSplit verifying key not loaded")!= string::npos); |
|
|
|
BOOST_CHECK( string(e.what()).find("error verifying joinsplit")!= string::npos); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -1365,7 +1365,7 @@ BOOST_AUTO_TEST_CASE(rpc_z_shieldcoinbase_internals) |
|
|
|
try { |
|
|
|
proxy.perform_joinsplit(info); |
|
|
|
} catch (const std::runtime_error & e) { |
|
|
|
BOOST_CHECK( string(e.what()).find("JoinSplit verifying key not loaded")!= string::npos); |
|
|
|
BOOST_CHECK( string(e.what()).find("error verifying joinsplit")!= string::npos); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -17,11 +17,17 @@ struct BasicTestingSetup { |
|
|
|
~BasicTestingSetup(); |
|
|
|
}; |
|
|
|
|
|
|
|
// Setup w.r.t. zk-SNARK API
|
|
|
|
struct JoinSplitTestingSetup: public BasicTestingSetup { |
|
|
|
JoinSplitTestingSetup(); |
|
|
|
~JoinSplitTestingSetup(); |
|
|
|
}; |
|
|
|
|
|
|
|
/** Testing setup that configures a complete environment.
|
|
|
|
* Included are data directory, coins database, script check threads |
|
|
|
* and wallet (if enabled) setup. |
|
|
|
*/ |
|
|
|
struct TestingSetup: public BasicTestingSetup { |
|
|
|
struct TestingSetup: public JoinSplitTestingSetup { |
|
|
|
CCoinsViewDB *pcoinsdbview; |
|
|
|
boost::filesystem::path pathTemp; |
|
|
|
boost::thread_group threadGroup; |
|
|
@ -30,10 +36,4 @@ struct TestingSetup: public BasicTestingSetup { |
|
|
|
~TestingSetup(); |
|
|
|
}; |
|
|
|
|
|
|
|
// Setup w.r.t. zk-SNARK API
|
|
|
|
struct JoinSplitTestingSetup: public BasicTestingSetup { |
|
|
|
JoinSplitTestingSetup(); |
|
|
|
~JoinSplitTestingSetup(); |
|
|
|
}; |
|
|
|
|
|
|
|
#endif |
|
|
|