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

Function feerate_from_style

bitcoin/feerate.c:4–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include <bitcoin/feerate.h>
3
4u32 feerate_from_style(u32 feerate, enum feerate_style style)
5{
6 switch (style) {
7 case FEERATE_PER_KSIPA:
8 return feerate;
9 case FEERATE_PER_KBYTE:
10 /* Everyone uses satoshi per kbyte, but we use satoshi per ksipa
11 * (don't round down to zero though)! */
12 return (feerate + 3) / 4;
13 }
14 abort();
15}
16
17u32 feerate_to_style(u32 feerate_perkw, enum feerate_style style)
18{

Callers 2

param_feerate_valFunction · 0.85
estimatefees_callbackFunction · 0.85

Calls 1

abortFunction · 0.85

Tested by

no test coverage detected