Skip to content

Commit

Permalink
feat: only process pending dao event
Browse files Browse the repository at this point in the history
  • Loading branch information
shaojunda committed Oct 12, 2019
1 parent d93cd50 commit c9b5b65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/ckb_sync/node_data_processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def process_block(node_block)
def update_dao_contract_related_info(local_block)
ApplicationRecord.transaction do
dao_contract = DaoContract.default_contract
dao_events = DaoEvent.where(block: local_block)
dao_events = DaoEvent.where(block: local_block).pending
process_deposit_to_dao(dao_contract, dao_events)
process_new_dao_depositor(dao_contract, dao_events)
process_withdraw_from_dao(dao_contract, dao_events)
Expand Down

0 comments on commit c9b5b65

Please sign in to comment.