mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
validation: pass ChainstateRole for validationinterface calls
This allows consumers to decide how to handle events from background or assumedvalid chainstates.
This commit is contained in:
parent
1e59acdf17
commit
4d8f4dcb45
19 changed files with 66 additions and 42 deletions
|
|
@ -22,7 +22,11 @@ void TestChainstateManager::JumpOutOfIbd()
|
|||
Assert(!IsInitialBlockDownload());
|
||||
}
|
||||
|
||||
void ValidationInterfaceTest::BlockConnected(CValidationInterface& obj, const std::shared_ptr<const CBlock>& block, const CBlockIndex* pindex)
|
||||
void ValidationInterfaceTest::BlockConnected(
|
||||
ChainstateRole role,
|
||||
CValidationInterface& obj,
|
||||
const std::shared_ptr<const CBlock>& block,
|
||||
const CBlockIndex* pindex)
|
||||
{
|
||||
obj.BlockConnected(block, pindex);
|
||||
obj.BlockConnected(role, block, pindex);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue