From 46907e97c1f4fd01abeb981a21e969f094cd4d7f Mon Sep 17 00:00:00 2001 From: Justin Turner Arthur Date: Wed, 9 Mar 2016 14:22:28 -0600 Subject: [PATCH] Remove penalty_func from CoinChooserPrivacy that is later implemented/redefined. Probably a copy pasta from the development process. --- lib/coinchooser.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/coinchooser.py b/lib/coinchooser.py index 2ade6a24..dd54f413 100644 --- a/lib/coinchooser.py +++ b/lib/coinchooser.py @@ -285,10 +285,6 @@ class CoinChooserPrivacy(CoinChooserRandom): def keys(self, coins): return [coin['address'] for coin in coins] - def penalty_func(self, buckets, tx): - '''Returns a penalty for a candidate set of buckets.''' - raise NotImplementedError - def penalty_func(self, tx): min_change = min(o[2] for o in tx.outputs()) * 0.75 max_change = max(o[2] for o in tx.outputs()) * 1.33