[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
|
(fx/defn restart
|
||||||
{:events [::restart]}
|
{:events [::restart]}
|
||||||
[{:keys [db] :as cofx}]
|
[{:keys [db] :as cofx} ignore-syncing-settings?]
|
||||||
(restart-wallet-service cofx {:force-start? true}))
|
(restart-wallet-service
|
||||||
|
cofx
|
||||||
|
{:force-start? true
|
||||||
|
:ignore-syncing-settings? ignore-syncing-settings?}))
|
||||||
|
|
||||||
(def pull-to-refresh-cooldown-period (* 1 60 1000))
|
(def pull-to-refresh-cooldown-period (* 1 60 1000))
|
||||||
|
|
||||||
|
@ -705,7 +708,7 @@
|
||||||
(json-rpc/call
|
(json-rpc/call
|
||||||
{:method "wallet_watchTransaction"
|
{:method "wallet_watchTransaction"
|
||||||
:params [hash]
|
: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)})))
|
:on-error #(log/info "[wallet] watch transaction error" % "hash" hash)})))
|
||||||
|
|
||||||
(fx/defn watch-tx
|
(fx/defn watch-tx
|
||||||
|
|
Loading…
Reference in New Issue