mirror of
https://github.com/jwinterm/grin-wallet.git
synced 2026-11-16 12:13:54 +01:00
save_step wrote the tx file (store_tx) before the atomic batch commit, so a DB failure could leave the stored tx out of sync with wallet state. Move store_tx to after batch.commit() (and after the post-commit signing-context check), matching the core convention in internal::selection. #755 keeps stored txs as files for all flows, so this reorder closes the desync window without diverging from core. Addresses PR #754 review (utils.rs).