Skip to content

Commit 3aa7f39

Browse files
authored
Merge pull request #2422 from nervosnetwork/testnet
Deploy to mainnet
2 parents 4d5af71 + 5734e0f commit 3aa7f39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/ckb_sync/new_node_data_processor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def process_dao_events!(local_tip_block = @local_tip_block)
179179
process_deposit_dao_events!(local_block, dao_contract)
180180
process_withdraw_dao_events!(local_block, dao_contract)
181181
process_interest_dao_events!(local_block, dao_contract)
182-
dao_contract.update(depositors_count: DaoEvent.depositor.count)
182+
dao_contract.update(depositors_count: DaoEvent.depositor.distinct.count(:address_id))
183183

184184
# update dao contract ckb_transactions_count
185185
dao_contract.increment!(:ckb_transactions_count,

0 commit comments

Comments
 (0)