Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy to testnet #2208

Merged
merged 1 commit into from
Sep 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions app/models/ckb_transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Loading