git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
01d4371
)
fix int rounding
author
ecdsa
<ecdsa@github>
Sun, 24 Mar 2013 11:44:17 +0000 (12:44 +0100)
committer
ecdsa
<ecdsa@github>
Sun, 24 Mar 2013 11:44:17 +0000 (12:44 +0100)
lib/wallet.py
patch
|
blob
|
history
diff --git
a/lib/wallet.py
b/lib/wallet.py
index
e3a82a1
..
cfb2737
100644
(file)
--- a/
lib/wallet.py
+++ b/
lib/wallet.py
@@
-559,7
+559,7
@@
class Wallet:
inputs.append( item )
if fixed_fee is None:
estimated_size = len(inputs) * 180 + 80 # this assumes non-compressed keys
- fee = self.fee * round(estimated_size/1024.)
+ fee = self.fee * int(round(estimated_size/1024.))
if fee == 0: fee = self.fee
else:
fee = fixed_fee