Revert height comparison change
authorCryptoManiac <balthazar@yandex.ru>
Wed, 23 Jul 2014 20:08:41 +0000 (00:08 +0400)
committerCryptoManiac <balthazar@yandex.ru>
Wed, 23 Jul 2014 20:08:41 +0000 (00:08 +0400)
lib/wallet.py

index 169d008..bcb0721 100644 (file)
@@ -578,7 +578,7 @@ class Abstract_Wallet(object):
         inputs = []
 
         for item in coins:
-            if (item.get('coinbase') or item.get('coinstake')) and item.get('height') + COINBASE_MATURITY < self.network.get_local_height():
+            if (item.get('coinbase') or item.get('coinstake')) and item.get('height') + COINBASE_MATURITY > self.network.get_local_height():
                 continue
             v = item.get('value')
             total += v