Design and approach
Clarify whether IPC should override the wallet-tool opt-out (src/CMakeLists.txt:166, head)
ENABLE_IPC makes this target build even when BUILD_WALLET_TOOL=OFF. The target includes wallet/wallettool.cpp and is installed, so enabling process separation also ships the offline wallet utility despite the explicit opt-out. If this coupling is intentional because the child service must use this executable, document the option interaction. Otherwise, separate or conditionally exclude the offline-tool functionality while retaining the IPC child executable.
🟠Major
CoinControl maximum depth is copied from the minimum (src/ipc/capnp/wallet.cpp:196, head)
The writer stores m_min_depth in maxDepth, and the reader likewise fills m_max_depth from getMinDepth(). When a CoinControl crosses IPC with different bounds, the wallet receives the minimum as its maximum. Since AvailableCoins applies both bounds when selecting eligible inputs, transaction creation and balance queries can exclude coins the caller expected to be available. Serialize m_max_depth and read getMaxDepth() for the maximum.
🟡 Minor
CoinControl optional values lack presence markers (src/ipc/capnp/wallet.cpp:198, head)
The writer stores lockTime, and similarly stores version and maxTxWeight, without setting hasLockTime, hasVersion, or hasMaxTxWeight. The reader checks those markers before applying the values, so they remain false/default and customized transaction constraints are silently discarded across IPC. Set each marker when writing its associated value, while preserving the intended version semantics.
WitnessUnknown decoding assumes the destination alternative is active (src/ipc/capnp/wallet.cpp:137, head)
When a CoinControl containing a WitnessUnknown change destination is read, destChange starts as CNoDestination. Unlike the other destination branches, this branch passes std::get<WitnessUnknown>(dest) to ReadDestUpdate, which throws std::bad_variant_access unless that alternative is already active. Decode into a temporary WitnessUnknown and assign it to dest, or establish the alternative before accessing it.
SecureString IPC copies are not cleansed with their message buffers (src/ipc/capnp/common-types.h:198, head)
The write hook copies passphrase bytes from SecureString into ordinary Cap’n Proto message storage, and the read hook copies them from the received message into SecureString. Both hooks delegate cleansing to callers, but generic IPC request handling does not cleanse these buffers when requests complete or fail. As a result, message-buffer copies can remain in allocator memory after the SecureString is destroyed. Arrange cleansing at the owning message-buffer lifetime on both sides, including error and cancellation paths.
PayToAnchor destinations are not serialized (src/ipc/capnp/wallet.cpp:113, head)
CTxDestination has a distinct PayToAnchor alternative, but the preceding dispatch handles WitnessUnknown only when that exact alternative is active. A PayToAnchor value falls through to this logic_error, so IPC calls that serialize such a destination fail instead of transferring it. Add explicit transport handling that preserves the PayToAnchor alternative.
💡 Suggestion
Update the usage guide’s future-tense process-splitting description (doc/multiprocess.md:50, head)
The guide says the node and wallet subprocess split will be implemented in a future PR, although this change implements that flow and the known-issues section below describes those processes as already internally spawned. Replace the future-tense description with the current process flow and limitations so the guide is consistent.
Review coverage was incomplete. The adversarial review had incomplete evidence. The adversarial_glm review had incomplete evidence. The concurrency review had incomplete evidence. The tests review had incomplete evidence. The design review had incomplete evidence.