Skip to content

Commit

Permalink
Get pending txs too in tx count, hopefully will alleviate some nonce …
Browse files Browse the repository at this point in the history
…desync issues (#173)
  • Loading branch information
mjkoo authored Jan 4, 2019
1 parent 18a2969 commit e48013b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/polyswarmd/eth.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ def get_syncing():
@chain
def get_nonce():
account = g.chain.w3.toChecksumAddress(g.eth_address)

return success(g.chain.w3.eth.getTransactionCount(account))
return success(g.chain.w3.eth.getTransactionCount(account, 'pending'))


@misc.route('/transactions', methods=['POST'])
Expand Down

0 comments on commit e48013b

Please sign in to comment.