You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
platform-wallet: a shielded asset lock can be broadcast on a host that records its recipient but not its funding pool #6327
Raised on #5930 (thread #5930 (comment)) and confirmed there as pre-existing, not introduced by that PR.
Problem. A fresh shielded asset-lock funding (platform_wallet_manager_shielded_fund_from_asset_lock, FromWalletBalance, no drain operation) makes its row durable before broadcast when the backend declares ASSET_LOCK_SHIELDED_RECIPIENTS. The FFI bridge can attest that bit on a host that installs no address-pool writer. FFIPersister::store then silently skips the funding pool, stores the row and its Orchard recipient, and Core broadcast proceeds. After a restart the host restores the row without the expanded funding pool; if the lock used an address past the initial gap window, rederive_credit_output_path fails before signing and the funds stay locked until the pool is rebuilt.
Proposed fix. On the durable-recipient path, require ASSET_LOCK_FUNDING_INDICES and ATOMIC_CHANGESETS before building a fresh shielded lock (as EXTERNAL_PLATFORM_ADDRESS_FUNDING and IDENTITY_RECIPIENT_TOP_UP already do), keeping the existing policy for backends without the recipient capability separate. Test a host with the recipient callbacks installed and the pool callback absent: the build is refused and the broadcaster is never called.
Activity