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

Function feerates_differ

lightningd/chaintopology.c:504–517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

502}
503
504static bool feerates_differ(const struct feerate_est *a,
505 const struct feerate_est *b)
506{
507 const size_t num_feerates = tal_count(a);
508 if (num_feerates != tal_count(b))
509 return true;
510 for (size_t i = 0; i < num_feerates; i++) {
511 if (a[i].blockcount != b[i].blockcount)
512 return true;
513 if (a[i].rate != b[i].rate)
514 return true;
515 }
516 return false;
517}
518
519/* In case the plugin does weird stuff! */
520static bool different_blockcounts(struct chain_topology *topo,

Callers 1

update_feeratesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected