electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit e4cdc4da0fd49dd7fd4b53ecd8cbb6e94377c26f
parent 4f15ea12e43a968e2c27c2c2a223001bb78be03b
Author: ThomasV <thomasv@gitorious>
Date:   Wed,  6 Nov 2013 23:09:24 +0100

dust threshold

Diffstat:
Mlib/wallet.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/wallet.py b/lib/wallet.py @@ -37,6 +37,7 @@ from transaction import Transaction from plugins import run_hook COINBASE_MATURITY = 100 +DUST_THRESHOLD = 5430 # AES encryption EncodeAES = lambda secret, s: base64.b64encode(aes.encryptData(secret,s)) @@ -1185,7 +1186,7 @@ class Wallet: def add_tx_change( self, inputs, outputs, amount, fee, total, change_addr=None): "add change to a transaction" change_amount = total - ( amount + fee ) - if change_amount != 0: + if change_amount > DUST_THRESHOLD: if not change_addr: # send change to one of the accounts involved in the tx