fix: confusion
authorThomasV <thomasv@gitorious>
Sun, 17 Jun 2012 04:58:36 +0000 (06:58 +0200)
committerThomasV <thomasv@gitorious>
Sun, 17 Jun 2012 04:58:36 +0000 (06:58 +0200)
lib/wallet.py

index c1769b0..2725d52 100644 (file)
@@ -888,7 +888,7 @@ class Wallet:
         if not inputs:
             raise BaseException("Not enough funds")
 
-        if self.use_change:
+        if not self.use_change:
             change_addr = inputs[0][0]
             print "sending change to", change_addr
         else: