Review report

core: PR #10102

๐ŸŸ  Major

Preserve CoinControl's maximum confirmation depth (src/ipc/capnp/wallet.cpp:196, head)

This writes the minimum depth into maxDepth, and the reader at line 237 also fills m_max_depth from getMinDepth(). A default CoinControl therefore crosses the wallet IPC boundary with a maximum depth of 0 instead of DEFAULT_MAX_DEPTH. Wallet coin selection filters out outputs above that depth, so multiprocess transaction creation can fail or select different inputs. Serialize m_max_depth and read getMaxDepth() on the other side.

๐ŸŸก Minor

Construct the WitnessUnknown destination alternative when reading (src/ipc/capnp/wallet.cpp:137, head)

A newly constructed CTxDestination initially holds CNoDestination. Calling std::get<WitnessUnknown> therefore throws std::bad_variant_access when reading a destination with witnessUnknown; the other branches assign their alternatives directly. Wallet IPC calls carrying a valid unknown-witness destination consequently fail. Read into a temporary WitnessUnknown and assign it to dest, or emplace the alternative before updating it.

Cleanse secret-bearing IPC message buffers (src/ipc/capnp/common-types.h:198, head)

This copies SecureString bytes into ordinary Cap'n Proto storage, while the comment at lines 196โ€“197 leaves cleanup to the caller. The read path at lines 205โ€“208 also leaves input message bytes uncleansed, and the CKey serializer in wallet.cpp copies secret bytes into message storage. Wallet passphrase calls use this path, so secret copies remain in ordinary, non-locked buffers when message storage is released or reused. Cleanse outgoing and incoming secret-bearing buffers on completion, including on exceptional paths.

Keep subtree mismatches failing lint (test/lint/git-subtree-check.sh:115, head)

When the current subtree tree differs from the last recorded subtree update, this branch reports the mismatch but does not exit unsuccessfully, so execution reaches the final GOOD message. The standard lint runner invokes this script without -r, so it does not perform the optional upstream-tree check instead. As a result, unimported or otherwise unsynchronized subtree changes can pass lint. Keep the integrity check failing, or limit any temporary exception to the specific known upstream changes.

Set CoinControl presence fields when serializing optional values (src/ipc/capnp/wallet.cpp:198, head)

The reader at lines 238โ€“245 applies lockTime, version, and maxTxWeight only when their corresponding hasLockTime, hasVersion, and hasMaxTxWeight fields are nonzero. This builder writes the values but does not set those presence fields, so the receiver keeps its defaults. Non-default transaction versions, locktimes, and maximum transaction weights are therefore lost across wallet IPC. Set the corresponding presence fields when writing these values and cover non-default round trips.

Review coverage was incomplete. The adversarial review had incomplete evidence. The adversarial_glm review did not complete. The state review had incomplete evidence. The tests review had incomplete evidence. The design review had incomplete evidence.