Browse Source
test: Move ECC_Start() call into src/gtest/main.cpp
metaverse
Jack Grigg
6 years ago
No known key found for this signature in database
GPG Key ID: 1B8D649257DB0829
2 changed files with
3 additions and
2 deletions
-
src/gtest/main.cpp
-
src/wallet/gtest/test_wallet_zkeys.cpp
|
|
@ -1,5 +1,6 @@ |
|
|
|
#include "gmock/gmock.h" |
|
|
|
#include "crypto/common.h" |
|
|
|
#include "key.h" |
|
|
|
#include "pubkey.h" |
|
|
|
#include "zcash/JoinSplit.hpp" |
|
|
|
#include "util.h" |
|
|
@ -20,6 +21,8 @@ ZCJoinSplit* params; |
|
|
|
|
|
|
|
int main(int argc, char **argv) { |
|
|
|
assert(init_and_check_sodium() != -1); |
|
|
|
ECC_Start(); |
|
|
|
|
|
|
|
libsnark::default_r1cs_ppzksnark_pp::init_public_params(); |
|
|
|
libsnark::inhibit_profiling_info = true; |
|
|
|
libsnark::inhibit_profiling_counters = true; |
|
|
|
|
|
@ -259,8 +259,6 @@ TEST(wallet_zkeys_tests, WriteViewingKeyDirectToDB) { |
|
|
|
* This test covers methods on CWalletDB to load/save crypted z keys. |
|
|
|
*/ |
|
|
|
TEST(wallet_zkeys_tests, write_cryptedzkey_direct_to_db) { |
|
|
|
ECC_Start(); |
|
|
|
|
|
|
|
SelectParams(CBaseChainParams::TESTNET); |
|
|
|
|
|
|
|
// Get temporary and unique path for file.
|
|
|
|