Remove penalty_func from CoinChooserPrivacy that is later implemented/redefined.
Probably a copy pasta from the development process.
This commit is contained in:
parent
80b1b2716c
commit
46907e97c1
|
@ -285,10 +285,6 @@ class CoinChooserPrivacy(CoinChooserRandom):
|
||||||
def keys(self, coins):
|
def keys(self, coins):
|
||||||
return [coin['address'] for coin in 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):
|
def penalty_func(self, tx):
|
||||||
min_change = min(o[2] for o in tx.outputs()) * 0.75
|
min_change = min(o[2] for o in tx.outputs()) * 0.75
|
||||||
max_change = max(o[2] for o in tx.outputs()) * 1.33
|
max_change = max(o[2] for o in tx.outputs()) * 1.33
|
||||||
|
|
Loading…
Reference in New Issue