From 442d9bc63a5dd9242e47a9aa40609abff37293de Mon Sep 17 00:00:00 2001 From: NanZhang Date: Tue, 7 Nov 2023 09:54:00 +0800 Subject: [PATCH] chore: update transaction deletion log (#1493) --- app/models/ckb_transaction.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/ckb_transaction.rb b/app/models/ckb_transaction.rb index 47a1e860c..0d0ba7222 100644 --- a/app/models/ckb_transaction.rb +++ b/app/models/ckb_transaction.rb @@ -437,8 +437,8 @@ def recover_dead_cell end def log_deletion_chain - unless tx_pending? - Rails.logger.info "Deleting #{self.class.name} with ID #{id} using #{caller}: #{as_json}" + if tx_committed? + Rails.logger.info "Deleting #{self.class.name} with tx_hash #{tx_hash}, block_number #{block_number} using #{caller}" end end end