diff --git a/sauron/sauron.py b/sauron/sauron.py index 03261d034..3e2e34c9a 100755 --- a/sauron/sauron.py +++ b/sauron/sauron.py @@ -200,10 +200,18 @@ def estimatefees(plugin, **kwargs): else: # It returns sat/vB, we want sat/kVB, so multiply everything by 10**3 slow = int(feerates["144"] * 10**3) - normal = int(feerates["5"] * 10**3) - urgent = int(feerates["3"] * 10**3) + normal = int(feerates["12"] * 10**3) + urgent = int(feerates["6"] * 10**3) very_urgent = int(feerates["2"] * 10**3) + feerate_floor = int(feerates["1008"] * 10**3) + feerates = [ + {"blocks": 2, "feerate": very_urgent}, + {"blocks": 6, "feerate": urgent}, + {"blocks": 12, "feerate": normal}, + {"blocks": 144, "feerate": slow} + ] + return { "opening": normal, "mutual_close": normal, @@ -213,6 +221,8 @@ def estimatefees(plugin, **kwargs): "penalty": urgent, "min_acceptable": slow // 2, "max_acceptable": very_urgent * 10, + "feerate_floor": feerate_floor, + "feerates": feerates }