diff options
author | Ryan Ofsky <ryan@ofsky.org> | 2022-09-08 15:21:08 -0400 |
---|---|---|
committer | Ryan Ofsky <ryan@ofsky.org> | 2023-10-20 10:30:16 -0400 |
commit | 4978754c0058bbdfbcd492f25fa49ef211e11d6e (patch) | |
tree | 1956f6b064ca2657b7608e3dcb05ded5c4908882 /src/rpc | |
parent | 924327eaf3ada45a603e80aa4a3ab38a0f8c8673 (diff) |
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.
Diffstat (limited to 'src/rpc')
-rw-r--r-- | src/rpc/node.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rpc/node.cpp b/src/rpc/node.cpp index 6b3662996c..b085828215 100644 --- a/src/rpc/node.cpp +++ b/src/rpc/node.cpp @@ -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; }, |