Skip to content

Commit

Permalink
fallback check fulfillment bounty token in sync
Browse files Browse the repository at this point in the history
  • Loading branch information
danlipert committed Apr 22, 2020
1 parent 90f249c commit 1b1efea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/dashboard/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,8 @@ def has_tx_mined(txid, network):

def sync_payout(fulfillment):
token_name = fulfillment.token_name
if not token_name:
token_name = fulfillment.bounty.token_name

if token_name == 'ETC':
sync_etc_payout(fulfillment)
Expand Down Expand Up @@ -863,7 +865,7 @@ def get_nonce(network, address, ignore_db=False):
nonce_from_web3 = w3.eth.getTransactionCount(address)
if ignore_db:
return nonce_from_web3

# db storage
key = f"nonce_{network}_{address}"
view = 'get_nonce'
Expand Down

0 comments on commit 1b1efea

Please sign in to comment.