Increase tx mining wait time from 10 to 30 minutes

This commit is contained in:
Vitaliy Vlasov 2018-05-16 23:34:01 +03:00
parent 01b9d25586
commit 931da34eab
No known key found for this signature in database
GPG Key ID: A7D57C347F2B2964
2 changed files with 3 additions and 3 deletions

View File

@ -238,7 +238,7 @@ SELECT
AS type, AS type,
issue_id issue_id
FROM issues FROM issues
WHERE updated < timezone('utc'::text, now()) - interval '10 minutes' WHERE updated < timezone('utc'::text, now()) - interval '30 minutes'
AND (transaction_hash is not null and contract_address is null AND (transaction_hash is not null and contract_address is null
OR execute_hash is not null and confirm_hash is null OR execute_hash is not null and confirm_hash is null
OR watch_hash is not null); OR watch_hash is not null);

View File

@ -57,8 +57,8 @@
(prune-txs [this unmined-txs] (prune-txs [this unmined-txs]
(when (or ((set (map :tx-hash unmined-txs)) (:tx-hash @current-tx)) (when (or ((set (map :tx-hash unmined-txs)) (:tx-hash @current-tx))
(and (:timestamp @current-tx) (and (:timestamp @current-tx)
(t/before? (:timestamp @current-tx) (t/minus (t/now) (t/minutes 10))))) (t/before? (:timestamp @current-tx) (t/minus (t/now) (t/minutes 30)))))
(log/errorf "Current nonce unmined for 10 minutes, force reset. Tx hash: %s, type: %s" (log/errorf "Current nonce unmined for 30 minutes, force reset. Tx hash: %s, type: %s"
(:tx-hash @current-tx) (:type @current-tx)) (:tx-hash @current-tx) (:type @current-tx))
(reset! current-tx nil))) (reset! current-tx nil)))