From 4d8f4dcb450d31e4847804e62bf91545b949fa14 Mon Sep 17 00:00:00 2001 From: James O'Beirne Date: Mon, 23 Sep 2019 13:54:21 -0400 Subject: validation: pass ChainstateRole for validationinterface calls This allows consumers to decide how to handle events from background or assumedvalid chainstates. --- src/bench/wallet_create_tx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bench') diff --git a/src/bench/wallet_create_tx.cpp b/src/bench/wallet_create_tx.cpp index 5e5bc76fd2..160534b63c 100644 --- a/src/bench/wallet_create_tx.cpp +++ b/src/bench/wallet_create_tx.cpp @@ -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 { -- cgit v1.2.3