mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-05 18:52:29 +02:00
Add coinstatsindex_unclean_shutdown test
This commit is contained in:
committed by
Martin Zumsande
parent
eb6cc05da3
commit
691d45fdc8
@@ -7,6 +7,7 @@
|
||||
#include <util/check.h>
|
||||
#include <util/time.h>
|
||||
#include <validation.h>
|
||||
#include <validationinterface.h>
|
||||
|
||||
void TestChainState::ResetIbd()
|
||||
{
|
||||
@@ -20,3 +21,8 @@ void TestChainState::JumpOutOfIbd()
|
||||
m_cached_finished_ibd = true;
|
||||
Assert(!IsInitialBlockDownload());
|
||||
}
|
||||
|
||||
void ValidationInterfaceTest::BlockConnected(CValidationInterface& obj, const std::shared_ptr<const CBlock>& block, const CBlockIndex* pindex)
|
||||
{
|
||||
obj.BlockConnected(block, pindex);
|
||||
}
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
|
||||
#include <validation.h>
|
||||
|
||||
class CValidationInterface;
|
||||
|
||||
struct TestChainState : public CChainState {
|
||||
/** Reset the ibd cache to its initial state */
|
||||
void ResetIbd();
|
||||
@@ -14,4 +16,10 @@ struct TestChainState : public CChainState {
|
||||
void JumpOutOfIbd();
|
||||
};
|
||||
|
||||
class ValidationInterfaceTest
|
||||
{
|
||||
public:
|
||||
static void BlockConnected(CValidationInterface& obj, const std::shared_ptr<const CBlock>& block, const CBlockIndex* pindex);
|
||||
};
|
||||
|
||||
#endif // BITCOIN_TEST_UTIL_VALIDATION_H
|
||||
|
||||
Reference in New Issue
Block a user