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 #1444

Merged
merged 1 commit into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
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: 4 additions & 3 deletions app/models/ckb_sync/new_node_data_processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1297,10 +1297,8 @@ def build_uncle_blocks!(node_block, local_block_id)
node_block.uncles.each do |uncle_block|
header = uncle_block.header
epoch_info = CkbUtils.parse_epoch_info(header)
UncleBlock.create!(
block_id: local_block_id,
UncleBlock.create_with(
compact_target: header.compact_target,
block_hash: header.hash,
number: header.number,
parent_hash: header.parent_hash,
nonce: header.nonce,
Expand All @@ -1313,6 +1311,9 @@ def build_uncle_blocks!(node_block, local_block_id)
proposals_count: uncle_block.proposals.count,
epoch: epoch_info.number,
dao: header.dao
).find_or_create_by!(
block_id: local_block_id,
block_hash: header.hash
)
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/tasks/migration/async_missing_transactions.rake
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace :migration do
txs_count2 = local_block.ckb_transactions.count
next if txs_count1 == txs_count2

puts "async missing block number: #{local_block.number} transactions count: #{txs_count1}"
puts "async missing block number: #{local_block.number}, rpc transactions count: #{txs_count1}, db transactions count: #{txs_count2}"

node_block = CkbSync::Api.instance.get_block_by_number(local_block.number)
CkbSync::NewNodeDataProcessor.new.process_block(node_block, refresh_balance: false)
Expand Down
Loading