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

Function sats_diff

channeld/channeld.c:1290–1293  ·  view source on GitHub ↗

unlike amount.h, we expect negative values for a - b. */

Source from the content-addressed store, hash-verified

1288
1289/* unlike amount.h, we expect negative values for a - b. */
1290static s64 sats_diff(struct amount_sat a, struct amount_sat b)
1291{
1292 return (s64)a.satoshis - (s64)b.satoshis; /* Raw: splicing numbers can wrap! */
1293}
1294
1295static void send_message_batch(struct peer *peer, u8 **msgs)
1296{

Callers 5

send_commitFunction · 0.85
handle_peer_commit_sigFunction · 0.85
resend_commitmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected