| 502 | } |
| 503 | |
| 504 | static 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! */ |
| 520 | static bool different_blockcounts(struct chain_topology *topo, |