mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-05-31 08:13:52 +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:
committed by
James O'Beirne
parent
1e59acdf17
commit
4d8f4dcb45
@@ -70,7 +70,7 @@ void generateFakeBlock(const CChainParams& params,
|
||||
|
||||
// notify wallet
|
||||
const auto& pindex = WITH_LOCK(::cs_main, return context.chainman->ActiveChain().Tip());
|
||||
wallet.blockConnected(kernel::MakeBlockInfo(pindex, &block));
|
||||
wallet.blockConnected(ChainstateRole::NORMAL, kernel::MakeBlockInfo(pindex, &block));
|
||||
}
|
||||
|
||||
struct PreSelectInputs {
|
||||
|
||||
Reference in New Issue
Block a user