Debug logging related to balance change detection

This commit is contained in:
Teemu Patja 2017-11-01 15:57:13 +02:00
parent ddc21f69bc
commit c81ec65bc6
No known key found for this signature in database
GPG Key ID: F5B7035E6580FD4C
1 changed files with 7 additions and 0 deletions

View File

@ -253,6 +253,13 @@
(not (float= db-balance-eth balance-eth))
(not= db-tokens token-balances))
(log/debug "balances differ")
(log/debug "ETH (db):" db-balance-eth (type db-balance-eth) )
(log/debug "ETH (chain):" balance-eth (type balance-eth) )
(log/debug "ETH cmp:" (float= db-balance-eth balance-eth))
(log/debug "tokens (db):" db-tokens (type db-tokens) (type (:SNT db-tokens)))
(log/debug "tokens (chain):" token-balances (type token-balances) (type (:SNT token-balances)))
(log/debug "tokens cmp:" (= db-tokens token-balances))
(issues/update-eth-balance contract-address balance-eth)
(issues/update-token-balances contract-address token-balances)
(bounties/update-bounty-comment-image issue-id