commit 1c528af433a6b7beb9eac12330b423407f7abdad
parent e9d0dd578a27219db612813f00ead541e457681e
Author: Neil Booth <kyuupichan@gmail.com>
Date: Sat, 12 Dec 2015 18:32:24 +0900
Description tweaks.
Mention loss of priority, and rename Classic to Oldest First.
Diffstat:
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/lib/coinchooser.py b/lib/coinchooser.py
@@ -116,7 +116,7 @@ class CoinChooserBase(PrintError):
return tx
-class CoinChooserClassic(CoinChooserBase):
+class CoinChooserOldestFirst(CoinChooserBase):
'''The classic electrum algorithm. Chooses coins starting with the
oldest that are sufficient to cover the spent amount, and then
removes any unneeded starting with the smallest in value.'''
@@ -189,7 +189,8 @@ class CoinChooserPrivacy(CoinChooserRandom):
large change up into amounts comparable to the spent amount.
Finally, change is rounded to similar precision to sent amounts.
Extra change outputs and rounding might raise the transaction fee
- slightly.'''
+ slightly. Transaction priority might be less than if older coins
+ were chosen.'''
def keys(self, coins):
return [coin['address'] for coin in coins]
@@ -270,5 +271,5 @@ class CoinChooserPrivacy(CoinChooserRandom):
return amounts
-COIN_CHOOSERS = {'Classic': CoinChooserClassic,
+COIN_CHOOSERS = {'Oldest First': CoinChooserOldestFirst,
'Privacy': CoinChooserPrivacy}