Skip to content

Commit

Permalink
feat: increase dao contract withdraw transactions count
Browse files Browse the repository at this point in the history
  • Loading branch information
shaojunda committed Oct 12, 2019
1 parent 9f71043 commit b15184b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/ckb_sync/node_data_processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ def update_dao_contract_related_info(local_block)
dao_events = DaoEvent.where(block: local_block)
process_deposit_to_dao(dao_contract, dao_events)
process_new_dao_depositor(dao_contract, dao_events)
withdraw_from_dao_events = dao_events.where(event_type: "withdraw_from_dao")
withdraw_from_dao_events.each do |event|
dao_contract.increment!(:withdraw_transactions_count)
end
end
end

Expand Down

0 comments on commit b15184b

Please sign in to comment.