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

Function route_fees

plugins/renepay/route.h:160–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158 return route->amount_sent;
159}
160static inline struct amount_msat route_fees(const struct route *route)
161{
162 struct amount_msat fees;
163 if (!amount_msat_sub(&fees, route_sends(route),
164 route_delivers(route))) {
165 assert(0 && "route sends is greater than delivers");
166 }
167 return fees;
168}
169static inline u32 route_delay(const struct route *route)
170{
171 assert(route);

Callers 3

get_routesFunction · 0.85
waitblockheight_doneFunction · 0.85
print_routesFunction · 0.85

Calls 3

amount_msat_subFunction · 0.85
route_sendsFunction · 0.85
route_deliversFunction · 0.85

Tested by 1

print_routesFunction · 0.68