We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6cfce1c + 591182f commit f02928dCopy full SHA for f02928d
Gemfile.lock
@@ -346,7 +346,7 @@ GEM
346
nio4r (~> 2.0)
347
raabro (1.4.0)
348
racc (1.8.1)
349
- rack (2.2.10)
+ rack (2.2.13)
350
rack-attack (6.6.1)
351
rack (>= 1.0, < 3)
352
rack-cache (1.13.0)
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