diff options
author | MarcoFalke <falke.marco@gmail.com> | 2019-04-17 15:14:05 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2019-04-17 15:14:12 -0400 |
commit | dae72998e8576439254ee497e82e2b9ce4917977 (patch) | |
tree | 69a8b21b3f016e7d3eec75267e0db06cd2dd0f72 /src/wallet/test | |
parent | 429a7cf34fa880cfd5ad0cf80a9fa5a2b467a3c9 (diff) | |
parent | fad7c33342cb51b310a7dd372bfa675df8810367 (diff) |
Merge #15779: test: Add wallet_balance benchmark
fad7c33342 refactor: Add handleNotifications method to wallet (MarcoFalke)
fa46ac3127 bench: Add wallet_balance benchmarks (MarcoFalke)
Pull request description:
ACKs for commit fad7c3:
ryanofsky:
utACK fad7c33342cb51b310a7dd372bfa675df8810367. I might squash or rearrange the commits to avoid adding code in one commit that just gets deleted in the next one. But overall this looks good and the cleanup is nice.
Tree-SHA512: 231faac168cbe9bb0ab4bf10ac1d5b042c610364406d75061fba27f1e9d16c71867e74cc4606e9f42659aa980d7133c00e29fcc18bbba7da2fa7a80178b3246c
Diffstat (limited to 'src/wallet/test')
-rw-r--r-- | src/wallet/test/wallet_test_fixture.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/wallet/test/wallet_test_fixture.cpp b/src/wallet/test/wallet_test_fixture.cpp index 7b82994539..6526e69eea 100644 --- a/src/wallet/test/wallet_test_fixture.cpp +++ b/src/wallet/test/wallet_test_fixture.cpp @@ -8,12 +8,13 @@ #include <wallet/db.h> #include <wallet/rpcwallet.h> -WalletTestingSetup::WalletTestingSetup(const std::string& chainName): - TestingSetup(chainName), m_wallet(m_chain.get(), WalletLocation(), WalletDatabase::CreateMock()) +WalletTestingSetup::WalletTestingSetup(const std::string& chainName) + : TestingSetup(chainName), + m_wallet(m_chain.get(), WalletLocation(), WalletDatabase::CreateMock()) { bool fFirstRun; m_wallet.LoadWallet(fFirstRun); - m_wallet.m_chain_notifications_handler = m_chain->handleNotifications(m_wallet); + m_wallet.handleNotifications(); m_chain_client->registerRpcs(); } |