wallet: Refactor to use WalletLocation

This commit is contained in:
João Barbosa
2018-09-28 16:50:18 +01:00
parent 01a4c095c8
commit 65f3672f3b
11 changed files with 54 additions and 58 deletions

View File

@@ -132,7 +132,7 @@ void TestGUI()
for (int i = 0; i < 5; ++i) {
test.CreateAndProcessBlock({}, GetScriptForRawPubKey(test.coinbaseKey.GetPubKey()));
}
std::shared_ptr<CWallet> wallet = std::make_shared<CWallet>("mock", WalletDatabase::CreateMock());
std::shared_ptr<CWallet> wallet = std::make_shared<CWallet>(WalletLocation(), WalletDatabase::CreateMock());
bool firstRun;
wallet->LoadWallet(firstRun);
{