From 67fc76eed2804b86f8f470a0ea8dcfd2e348b9d4 Mon Sep 17 00:00:00 2001 From: Miles Zhang Date: Thu, 26 Sep 2024 17:59:00 +0800 Subject: [PATCH] feat: remove ckb_transaction delete log (#2207) Signed-off-by: Miles Zhang --- app/models/ckb_transaction.rb | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/models/ckb_transaction.rb b/app/models/ckb_transaction.rb index cf89344c1..a91735da9 100644 --- a/app/models/ckb_transaction.rb +++ b/app/models/ckb_transaction.rb @@ -56,7 +56,6 @@ class CkbTransaction < ApplicationRecord after_commit :flush_cache before_destroy :recover_dead_cell - before_destroy :log_deletion_chain def self.cached_find(query_key) Rails.cache.realize([name, query_key], race_condition_ttl: 3.seconds) do @@ -246,12 +245,6 @@ def self.last_n_days_transaction_fee_rates(last_n_day) def recover_dead_cell inputs.update_all(status: "live", consumed_by_id: nil, consumed_block_timestamp: nil) end - - def log_deletion_chain - if tx_committed? - Rails.logger.info "Deleting #{self.class.name} with tx_hash #{tx_hash}, block_number #{block_number} using #{caller}" - end - end end # == Schema Information