Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions raiden/network/rpc/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,10 @@ def gas_price(self) -> int:
# we can sporadically get an AtttributeError here. If that happens
# use latest gas price
price = int(self.web3.eth.gasPrice)
except IndexError: # work around for a web3.py exception when
# the blockchain is somewhat empty.
# https://github.com/ethereum/web3.py/issues/1149
price = int(self.web3.eth.gasPrice)

return price

Expand Down