[wallet #11944] Watch confirmation of sent tx when syncing is disabled

This commit is contained in:
Roman Volosovskyi 2021-03-31 16:36:13 +03:00
parent 116b4d8812
commit 937efc9f4f
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
1 changed files with 6 additions and 3 deletions

View File

@ -677,8 +677,11 @@
(fx/defn restart
{:events [::restart]}
[{:keys [db] :as cofx}]
(restart-wallet-service cofx {:force-start? true}))
[{:keys [db] :as cofx} ignore-syncing-settings?]
(restart-wallet-service
cofx
{:force-start? true
:ignore-syncing-settings? ignore-syncing-settings?}))
(def pull-to-refresh-cooldown-period (* 1 60 1000))
@ -705,7 +708,7 @@
(json-rpc/call
{:method "wallet_watchTransaction"
:params [hash]
:on-success #(re-frame.core/dispatch [::restart])
:on-success #(re-frame.core/dispatch [::restart true])
:on-error #(log/info "[wallet] watch transaction error" % "hash" hash)})))
(fx/defn watch-tx