Increase tx mining wait time from 10 to 30 minutes
This commit is contained in:
parent
01b9d25586
commit
931da34eab
|
@ -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);
|
||||||
|
|
|
@ -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)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue