[wallet #11944] Watch confirmation of sent tx when syncing is disabled
This commit is contained in:
parent
116b4d8812
commit
937efc9f4f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue