mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 06:58:57 +01:00
interfaces: Add schedulerMockForward method so mockscheduler RPC can work across processes
Needed to fix new wallet_groups.py and wallet_resendwallettransactions.py tests with multiprocess bitcoin-node executable.
This commit is contained in:
@@ -91,6 +91,9 @@ static RPCHelpMan mockscheduler()
|
||||
const NodeContext& node_context{EnsureAnyNodeContext(request.context)};
|
||||
CHECK_NONFATAL(node_context.scheduler)->MockForward(std::chrono::seconds{delta_seconds});
|
||||
SyncWithValidationInterfaceQueue();
|
||||
for (const auto& chain_client : node_context.chain_clients) {
|
||||
chain_client->schedulerMockForward(std::chrono::seconds(delta_seconds));
|
||||
}
|
||||
|
||||
return UniValue::VNULL;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user