tx fee is always an int

This commit is contained in:
Jude Nelson
2017-05-01 16:37:41 -04:00
parent ffe0c40ed2
commit dca4b9052b

View File

@@ -128,7 +128,7 @@ def get_tx_fee( tx_hex, config_path=CONFIG_PATH ):
fee = float(fee)
# / 2048, since tx_hex is a hex string (otherwise / 1024, since it's BTC per kb)
return round((fee * (len(tx_hex) / 2048.0)) * 10**8)
return int(round((fee * (len(tx_hex) / 2048.0)) * 10**8))
except Exception, e:
log.exception(e)
log.debug("Failed to estimate fee")