mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
Merge bitcoin/bitcoin#17860: fuzz: BIP 30, CVE-2018-17144
fa2d8b61f9fuzz: BIP 42, BIP 30, CVE-2018-17144 (MarcoFalke)faae7d5c00Move LoadVerifyActivateChainstate to ChainTestingSetup (MarcoFalke)fa26e3462aAvoid dereferencing interruption_point if it is nullptr (MarcoFalke)fa846ee074test: Add util to mine invalid blocks (MarcoFalke) Pull request description: Add a validation fuzz test for BIP 30 and CVE-2018-17144 ACKs for top commit: dergoegge: Code review ACKfa2d8b61f9mzumsande: Tested ACKfa2d8b61f9Tree-SHA512: 1f4620cc078709487abff24b304a6bb4eeab2e7628b392e2bc6de9cc0ce6745c413388ede6e93025d0c56eec905607ba9786633ef183e5779bf5183cc9ff92c0
This commit is contained in:
@@ -214,7 +214,7 @@ ChainTestingSetup::~ChainTestingSetup()
|
||||
m_node.chainman.reset();
|
||||
}
|
||||
|
||||
void TestingSetup::LoadVerifyActivateChainstate()
|
||||
void ChainTestingSetup::LoadVerifyActivateChainstate()
|
||||
{
|
||||
auto& chainman{*Assert(m_node.chainman)};
|
||||
node::ChainstateLoadOptions options;
|
||||
@@ -244,10 +244,10 @@ TestingSetup::TestingSetup(
|
||||
const std::vector<const char*>& extra_args,
|
||||
const bool coins_db_in_memory,
|
||||
const bool block_tree_db_in_memory)
|
||||
: ChainTestingSetup(chainName, extra_args),
|
||||
m_coins_db_in_memory(coins_db_in_memory),
|
||||
m_block_tree_db_in_memory(block_tree_db_in_memory)
|
||||
: ChainTestingSetup(chainName, extra_args)
|
||||
{
|
||||
m_coins_db_in_memory = coins_db_in_memory;
|
||||
m_block_tree_db_in_memory = block_tree_db_in_memory;
|
||||
// Ideally we'd move all the RPC tests to the functional testing framework
|
||||
// instead of unit tests, but for now we need these here.
|
||||
RegisterAllCoreRPCCommands(tableRPC);
|
||||
|
||||
Reference in New Issue
Block a user