Browse Source

fix: estimatesmartfee when there is no feerate from daemon (#306)

patch-1
SomberNight 7 years ago
committed by Neil
parent
commit
e2b15d7fe1
  1. 2
      server/daemon.py

2
server/daemon.py

@ -249,7 +249,7 @@ class Daemon(LoggedClass):
'''Return the fee estimate for the given parameters.'''
if await self._is_rpc_available('estimatesmartfee'):
estimate = await self._send_single('estimatesmartfee', params)
return estimate['feerate']
return estimate.get('feerate', -1)
return await self._send_single('estimatefee', params)
async def getnetworkinfo(self):

Loading…
Cancel
Save