From dca4b9052b5f585d3160999725d8309febe7d6bf Mon Sep 17 00:00:00 2001 From: Jude Nelson Date: Mon, 1 May 2017 16:37:41 -0400 Subject: [PATCH] tx fee is always an int --- blockstack_client/backend/blockchain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blockstack_client/backend/blockchain.py b/blockstack_client/backend/blockchain.py index f0112f09f..8e29f6789 100644 --- a/blockstack_client/backend/blockchain.py +++ b/blockstack_client/backend/blockchain.py @@ -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")