Skip to content

Commit

Permalink
fix: update udt info (#2249)
Browse files Browse the repository at this point in the history
  • Loading branch information
rabbitz authored Oct 17, 2024
1 parent 174ae55 commit 4c7f075
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions app/workers/update_udt_info_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,8 @@ def perform(block_number)
return if local_block.blank?

type_hashes = []
local_block.cell_outputs.udt.select(:id, :type_hash).each do |udt_output|
type_hashes << udt_output.type_hash
end
local_block.cell_outputs.omiga_inscription.select(:id, :type_hash).each do |udt_output|
type_hashes << udt_output.type_hash
end
local_block.cell_outputs.xudt.select(:id, :type_hash).each do |udt_output|
local_block.cell_outputs.where(cell_type: ["udt", "omiga_inscription", "xudt", "xudt_compatible"]).
select(:id, :type_hash).each do |udt_output|
type_hashes << udt_output.type_hash
end
local_block.ckb_transactions.pluck(:id).each do |tx_id|
Expand Down

0 comments on commit 4c7f075

Please sign in to comment.