Skip to content

Commit

Permalink
chore: update transaction deletion log (#1493)
Browse files Browse the repository at this point in the history
  • Loading branch information
rabbitz authored Nov 7, 2023
1 parent 67bfec1 commit 442d9bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/ckb_transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 442d9bc

Please sign in to comment.