tDescription tweaks. - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 1c528af433a6b7beb9eac12330b423407f7abdad DIR parent e9d0dd578a27219db612813f00ead541e457681e HTML 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: M lib/coinchooser.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) --- DIR diff --git a/lib/coinchooser.py b/lib/coinchooser.py t@@ -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.''' t@@ -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] t@@ -270,5 +271,5 @@ class CoinChooserPrivacy(CoinChooserRandom): return amounts -COIN_CHOOSERS = {'Classic': CoinChooserClassic, +COIN_CHOOSERS = {'Oldest First': CoinChooserOldestFirst, 'Privacy': CoinChooserPrivacy}