diff options
author | Andrew Chow <achow101-github@achow101.com> | 2019-02-06 21:26:55 -0500 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2019-02-10 12:24:53 -0500 |
commit | 7687f7873b75c3cbdfa15ab570211dc39d24ab80 (patch) | |
tree | 2bbbc90f6c961ae1e6005be6584c63d94d721653 /src/wallet/test/wallet_tests.cpp | |
parent | 5c99bb00470057f573f1d76b76e744a6ccd65b08 (diff) |
[wallet] Support creating a blank wallet
A blank wallet is a wallet that has no keys, script or watch only things.
A new wallet flag indicating that it is blank will be set when the wallet
is blank. Once it is no longer blank (a seed has been generated, keys or
scripts imported, etc), the flag will be unset.
Diffstat (limited to 'src/wallet/test/wallet_tests.cpp')
-rw-r--r-- | src/wallet/test/wallet_tests.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wallet/test/wallet_tests.cpp b/src/wallet/test/wallet_tests.cpp index 8c380f1257..1d4eae73a4 100644 --- a/src/wallet/test/wallet_tests.cpp +++ b/src/wallet/test/wallet_tests.cpp @@ -449,6 +449,7 @@ BOOST_FIXTURE_TEST_CASE(wallet_disableprivkeys, TestChain100Setup) { auto chain = interfaces::MakeChain(); std::shared_ptr<CWallet> wallet = std::make_shared<CWallet>(*chain, WalletLocation(), WalletDatabase::CreateDummy()); + wallet->SetMinVersion(FEATURE_LATEST); wallet->SetWalletFlag(WALLET_FLAG_DISABLE_PRIVATE_KEYS); BOOST_CHECK(!wallet->TopUpKeyPool(1000)); CPubKey pubkey; |