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

Function feerate_to_style

bitcoin/feerate.c:28–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28u32 feerate_to_style(u32 feerate_perkw, enum feerate_style style)
29{
30 switch (style) {
31 case FEERATE_PER_KSIPA:
32 return feerate_perkw;
33 case FEERATE_PER_KBYTE:
34 if ((u64)feerate_perkw * 4 > UINT_MAX)
35 return UINT_MAX;
36 return feerate_perkw * 4;
37 }
38 abort();
39}
40
41bool next_funding_feerate(u32 last_feerate, u32 *next_feerate)
42{

Callers 3

json_feeratesFunction · 0.85
json_parse_feerateFunction · 0.85
NON_NULL_ARGSFunction · 0.85

Calls 1

abortFunction · 0.85

Tested by

no test coverage detected