Skip to content

Commit

Permalink
Merge pull request #1591 from rabbitz/feat/block_syncer
Browse files Browse the repository at this point in the history
feat: disable sync cell deps
  • Loading branch information
rabbitz authored Jan 18, 2024
2 parents 5a8c712 + 3fd5d8c commit cc7268a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/models/ckb_sync/new_node_data_processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def process_block(node_block, refresh_balance: true)

benchmark :flush_inputs_outputs_caches, local_block
benchmark :generate_statistics_data, local_block
benchmark :generate_deployed_cells_and_referring_cells, local_block
# benchmark :generate_deployed_cells_and_referring_cells, local_block

FetchCotaWorker.perform_async(local_block.number) if enable_cota
local_block.update_counter_for_ckb_node_version
Expand Down Expand Up @@ -659,8 +659,7 @@ def build_udts!(local_block, outputs, outputs_data)
udts_attributes = Set.new
outputs.each do |tx_index, items|
items.each_with_index do |output, index|
cell_type = benchmark :cell_type, output.type,
outputs_data[tx_index][index]
cell_type = cell_type(output.type,outputs_data[tx_index][index])
if cell_type == "omiga_inscription_info"
info = CkbUtils.parse_omiga_inscription_info(outputs_data[tx_index][index])
OmigaInscriptionInfo.upsert(info.merge(output.type.to_h),
Expand Down

0 comments on commit cc7268a

Please sign in to comment.