aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/context.h
diff options
context:
space:
mode:
authorRyan Ofsky <ryan@ofsky.org>2022-09-08 15:21:08 -0400
committerRyan Ofsky <ryan@ofsky.org>2023-10-20 10:30:16 -0400
commit4978754c0058bbdfbcd492f25fa49ef211e11d6e (patch)
tree1956f6b064ca2657b7608e3dcb05ded5c4908882 /src/wallet/context.h
parent924327eaf3ada45a603e80aa4a3ab38a0f8c8673 (diff)
downloadbitcoin-4978754c0058bbdfbcd492f25fa49ef211e11d6e.tar.xz
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/wallet/context.h')
-rw-r--r--src/wallet/context.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/context.h b/src/wallet/context.h
index 57a6ed77f7..58b9924fb4 100644
--- a/src/wallet/context.h
+++ b/src/wallet/context.h
@@ -13,6 +13,7 @@
#include <vector>
class ArgsManager;
+class CScheduler;
namespace interfaces {
class Chain;
class Wallet;
@@ -34,6 +35,7 @@ using LoadWalletFn = std::function<void(std::unique_ptr<interfaces::Wallet> wall
//! behavior.
struct WalletContext {
interfaces::Chain* chain{nullptr};
+ CScheduler* scheduler{nullptr};
ArgsManager* args{nullptr}; // Currently a raw pointer because the memory is not managed by this struct
// It is unsafe to lock this after locking a CWallet::cs_wallet mutex because
// this could introduce inconsistent lock ordering and cause deadlocks.