Skip to content

Commit

Permalink
feat: rescue CKB::RPCError
Browse files Browse the repository at this point in the history
  • Loading branch information
shaojunda committed Aug 20, 2019
1 parent 97b5e7a commit 9f25b0f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/utils/ckb_utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -172,5 +172,7 @@ def self.dao_withdraw_tx_fee(ckb_transaction)
end

ckb_transaction.inputs.sum(:capacity) + interests - ckb_transaction.outputs.sum(:capacity)
rescue CKB::RPCError
0
end
end

0 comments on commit 9f25b0f

Please sign in to comment.