We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15b0bde commit 591182fCopy full SHA for 591182f
app/workers/pool_transaction_check_worker.rb
@@ -6,10 +6,10 @@ class PoolTransactionCheckWorker
6
7
def perform
8
pending_transactions = CkbTransaction.tx_pending.where("created_at < ?",
9
- 5.minutes.ago).limit(100)
+ 10.minutes.ago).limit(100)
10
pending_transactions.each do |tx|
11
committed_tx = CkbTransaction.find_by(tx_hash: tx.tx_hash, tx_status: "committed")
12
- if committed_tx
+ if committed_tx && tx.reload.tx_pending?
13
tx.cell_inputs.delete_all
14
tx.delete
15
else
0 commit comments