From 164b25200d858b604fe772d32c31c5ba3777fd7a Mon Sep 17 00:00:00 2001 From: Alex Cato Date: Sun, 27 Aug 2017 20:18:24 +0200 Subject: [PATCH] make sure miner fee estimate returns an int --- jmclient/jmclient/blockchaininterface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jmclient/jmclient/blockchaininterface.py b/jmclient/jmclient/blockchaininterface.py index d904ec9..a44c13f 100644 --- a/jmclient/jmclient/blockchaininterface.py +++ b/jmclient/jmclient/blockchaininterface.py @@ -788,7 +788,7 @@ class BitcoinCoreInterface(BlockchainInterface): # Special bitcoin core case: sometimes the highest priority # cannot be estimated in that case the 2nd highest priority # should be used instead of falling back to hardcoded values - estimate = Decimal(1e8) * Decimal(self.rpc('estimatefee', [N+1])) + estimate = int(Decimal(1e8) * Decimal(self.rpc('estimatefee', [N+1]))) if estimate < 0: # This occurs when Core has insufficient data to estimate. return 100000