fix: network.height() is a function
authorThomasV <thomasv@gitorious>
Tue, 4 Mar 2014 13:32:52 +0000 (14:32 +0100)
committerThomasV <thomasv@gitorious>
Tue, 4 Mar 2014 13:32:52 +0000 (14:32 +0100)
lib/wallet.py

index b3d9d92..9eff108 100644 (file)
@@ -1101,7 +1101,7 @@ class NewWallet:
         inputs = []
 
         for item in coins:
-            if item.get('coinbase') and item.get('height') + COINBASE_MATURITY > self.network.blockchain.height:
+            if item.get('coinbase') and item.get('height') + COINBASE_MATURITY > self.network.blockchain.height():
                 continue
             addr = item.get('address')
             v = item.get('value')