File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -483,6 +483,7 @@ impl LightClient {
483
483
. generate_unified_address ( desired_receivers)
484
484
. map_err ( |e| e. to_string ( ) ) ?;
485
485
486
+ // FIXME: zingo2, rework wallet save to save while the wallet guard is acquired
486
487
if SyncMode :: from_atomic_u8 ( self . sync_mode . clone ( ) ) == SyncMode :: NotRunning {
487
488
self . save_internal_rust ( ) . await ?;
488
489
}
Original file line number Diff line number Diff line change @@ -103,6 +103,9 @@ pub mod send_with_proposal {
103
103
) -> Result < NonEmpty < TxId > , CompleteAndBroadcastError > {
104
104
let mut wallet = self . wallet . lock ( ) . await ;
105
105
let calculated_txids = wallet. create_transactions ( proposal) . await ?;
106
+
107
+ // FIXME: zingo2, save wallet here in case send fails and tx is lost
108
+
106
109
let broadcast_result = wallet
107
110
. broadcast_calculated_transactions ( self . get_server_uri ( ) , calculated_txids)
108
111
. await ;
You can’t perform that action at this time.
0 commit comments