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

Function feerate_floor

bitcoin/feerate.h:42–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40};
41
42static inline u32 feerate_floor(void)
43{
44 /* Assert that bitcoind will see this as above minRelayTxFee */
45 BUILD_ASSERT(FEERATE_BITCOIND_SEES(FEERATE_FLOOR, MINIMUM_TX_WEIGHT)
46 >= BITCOIND_MINRELAYTXFEE_PER_KW);
47 /* And a lesser value won't do */
48 BUILD_ASSERT(FEERATE_BITCOIND_SEES(FEERATE_FLOOR-1, MINIMUM_TX_WEIGHT)
49 < BITCOIND_MINRELAYTXFEE_PER_KW);
50 /* And I'm right about it being OK for larger txs, too */
51 BUILD_ASSERT(FEERATE_BITCOIND_SEES(FEERATE_FLOOR, (MINIMUM_TX_WEIGHT*2))
52 >= BITCOIND_MINRELAYTXFEE_PER_KW);
53
54 return FEERATE_FLOOR;
55}
56
57u32 feerate_from_style(u32 feerate, enum feerate_style style);
58u32 feerate_to_style(u32 feerate_perkw, enum feerate_style style);

Callers 7

tx_to_usFunction · 0.85
penalty_tx_createFunction · 0.85
update_feeratesFunction · 0.85
feerate_minFunction · 0.85
onchaind_funding_spentFunction · 0.85
peer_start_closingdFunction · 0.85
json_fundchannel_startFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected