]> Untitled Git - bdk-cli/commit
Integrate payjoin session persistence into workflow
authorMshehu5 <musheu@gmail.com>
Mon, 16 Feb 2026 13:48:33 +0000 (14:48 +0100)
committerMshehu5 <musheu@gmail.com>
Thu, 2 Jul 2026 11:30:27 +0000 (12:30 +0100)
commit4f71144a49047c9debd481cbb2a75cd86d462906
treebc36307f9e0b7c1942b5c23e30a59fd132aac66f
parentc2bdb3d53f503d9ce58cb2c43771320a89aefdf4
Integrate payjoin session persistence into workflow

Wire the payjoin persistence layer into the existing send and receive
flows so session state is saved during normal operation and can be
replayed later. Initialize the database from the handlers, replace
the noop persisters with SQLite-backed persisters, resume existing
sessions, and record seen inputs in the receiver flow for replay
protection.

This moves persistence from a standalone storage layer into the
runtime payjoin workflow so interrupted sessions can continue from
saved state instead of starting over. It also simplifies error
handling by relying on `?` once the storage errors map cleanly into
the CLI error type.
src/handlers.rs
src/payjoin/mod.rs
src/utils.rs