Skip to content

Commit

Permalink
feat: create forked event when forked
Browse files Browse the repository at this point in the history
  • Loading branch information
shaojunda committed Jan 2, 2020
1 parent 378ab3e commit ce61a1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/ckb_sync/node_data_processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ def invalid_block(local_tip_block)
local_tip_block.invalid!
local_tip_block.contained_addresses.each(&method(:update_address_balance_and_ckb_transactions_count))
revert_block_rewards(local_tip_block)
ForkedEvent.create!(block_number: local_tip_block.number, epoch_number: local_tip_block.epoch, block_timestamp: local_tip_block.timestamp)

local_tip_block
end
Expand Down

0 comments on commit ce61a1f

Please sign in to comment.