File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ ChainTestingSetup::~ChainTestingSetup()
211
211
m_node.chainman .reset ();
212
212
}
213
213
214
- void TestingSetup ::LoadVerifyActivateChainstate ()
214
+ void ChainTestingSetup ::LoadVerifyActivateChainstate ()
215
215
{
216
216
auto & chainman{*Assert (m_node.chainman )};
217
217
node::ChainstateLoadOptions options;
@@ -241,10 +241,10 @@ TestingSetup::TestingSetup(
241
241
const std::vector<const char *>& extra_args,
242
242
const bool coins_db_in_memory,
243
243
const bool block_tree_db_in_memory)
244
- : ChainTestingSetup(chainName, extra_args),
245
- m_coins_db_in_memory(coins_db_in_memory),
246
- m_block_tree_db_in_memory(block_tree_db_in_memory)
244
+ : ChainTestingSetup(chainName, extra_args)
247
245
{
246
+ m_coins_db_in_memory = coins_db_in_memory;
247
+ m_block_tree_db_in_memory = block_tree_db_in_memory;
248
248
// Ideally we'd move all the RPC tests to the functional testing framework
249
249
// instead of unit tests, but for now we need these here.
250
250
RegisterAllCoreRPCCommands (tableRPC);
Original file line number Diff line number Diff line change @@ -93,19 +93,19 @@ struct BasicTestingSetup {
93
93
*/
94
94
struct ChainTestingSetup : public BasicTestingSetup {
95
95
node::CacheSizes m_cache_sizes{};
96
+ bool m_coins_db_in_memory{true };
97
+ bool m_block_tree_db_in_memory{true };
96
98
97
99
explicit ChainTestingSetup (const std::string& chainName = CBaseChainParams::MAIN, const std::vector<const char *>& extra_args = {});
98
100
~ChainTestingSetup ();
101
+
102
+ // Supplies a chainstate, if one is needed
103
+ void LoadVerifyActivateChainstate ();
99
104
};
100
105
101
106
/* * Testing setup that configures a complete environment.
102
107
*/
103
108
struct TestingSetup : public ChainTestingSetup {
104
- bool m_coins_db_in_memory{true };
105
- bool m_block_tree_db_in_memory{true };
106
-
107
- void LoadVerifyActivateChainstate ();
108
-
109
109
explicit TestingSetup (
110
110
const std::string& chainName = CBaseChainParams::MAIN,
111
111
const std::vector<const char *>& extra_args = {},
You can’t perform that action at this time.
0 commit comments