Skip to content

Commit

Permalink
feat: update addresses balance and transactions count when forked
Browse files Browse the repository at this point in the history
  • Loading branch information
shaojunda committed Aug 1, 2019
1 parent 9c03a2f commit 9c53185
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/models/ckb_sync/node_data_processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ def call
process_block(target_block)
else
local_tip_block.invalid!
local_tip_block.contained_addresses.each(&method(:update_address_balance_and_ckb_transactions_count))

local_tip_block
end
end

Expand Down Expand Up @@ -220,7 +223,6 @@ def update_tx_fee_related_data(lock_block)
link_payer_address_to_ckb_transaction(ckb_transaction, address)

update_previous_cell_output_status(ckb_transaction, previous_cell_output)
update_address_balance_and_ckb_transactions_count(address)
end
end
end
Expand Down

0 comments on commit 9c53185

Please sign in to comment.