MCPcopy Create free account
hub / github.com/ElementsProject/lightning / estimatefees

Function estimatefees

tests/plugins/badestimate.py:29–49  ·  view source on GitHub ↗
(plugin, **kwargs)

Source from the content-addressed store, hash-verified

27
28@plugin.method("estimatefees")
29def estimatefees(plugin, **kwargs):
30 if plugin.get_option("badestimate-badorder"):
31 return {"feerate_floor": 1000,
32 "feerates": [{"blocks": 6,
33 "feerate": 1240000000},
34 {"blocks": 12,
35 "feerate": 1350000000},
36 {"blocks": 100,
37 "feerate": 3610000000},
38 {"blocks": 2,
39 "feerate": 1270000000}]}
40 else:
41 return {"feerate_floor": 1000,
42 "feerates": [{"blocks": 2,
43 "feerate": 1270000000},
44 {"blocks": 6,
45 "feerate": 1240000000},
46 {"blocks": 12,
47 "feerate": 1350000000},
48 {"blocks": 100,
49 "feerate": 3610000000}]}
50
51
52@plugin.method("getrawblockbyheight")

Callers

nothing calls this directly

Calls 1

get_optionMethod · 0.80

Tested by

no test coverage detected