]> Git Repo - VerusCoin.git/commitdiff
Update founders reward test to output path of temporary wallet.dat file which contain...
authorSimon <[email protected]>
Fri, 30 Sep 2016 06:04:27 +0000 (23:04 -0700)
committerSimon <[email protected]>
Fri, 30 Sep 2016 21:42:47 +0000 (14:42 -0700)
src/gtest/test_foundersreward.cpp

index 4db0d985caf88d98651afd3ff5344d1fc71d0c11..2f7776548f705a58027ddd7c3556406381ac2451 100644 (file)
 //
 // Enable this test to generate and print 48 testnet 2-of-3 multisig addresses.
 // The output can be copied into chainparams.cpp.
+// The temporary wallet file can be renamed as wallet.dat and used for testing with zcashd.
 //
 #if 0
 TEST(founders_reward_test, create_testnet_2of3multisig) {
     ECC_Start();
     SelectParams(CBaseChainParams::TESTNET);
     boost::filesystem::path temp = boost::filesystem::temp_directory_path() / boost::filesystem::unique_path();
-    const std::string path = temp.native();
+    const std::string path = temp.native() + "-wallet.dat";
     bool fFirstRun;
     auto pWallet = std::make_shared<CWallet>(path);
     ASSERT_EQ(DB_LOAD_OK, pWallet->LoadWallet(fFirstRun));
     pWallet->TopUpKeyPool();
+    std::cout << "Test wallet file path: " << path << std::endl;
     
     int numKeys = 48;
     std::vector<CPubKey> pubkeys;
@@ -65,6 +67,8 @@ TEST(founders_reward_test, create_testnet_2of3multisig) {
     }
     s += "    };";
     std::cout << s << std::endl;
+
+    pWallet->Flush(true);
 }
 #endif
 
This page took 0.026638 seconds and 4 git commands to generate.