We don't get upset if they're outside the range, as long as they're * improving (or at least, not getting worse!). */
| 728 | /* We don't get upset if they're outside the range, as long as they're |
| 729 | * improving (or at least, not getting worse!). */ |
| 730 | static bool feerate_same_or_better(const struct channel *channel, |
| 731 | u32 feerate, u32 feerate_min, u32 feerate_max) |
| 732 | { |
| 733 | u32 current = channel_feerate(channel, LOCAL); |
| 734 | |
| 735 | /* Too low? But is it going upwards? */ |
| 736 | if (feerate < feerate_min) |
| 737 | return feerate >= current; |
| 738 | if (feerate > feerate_max) |
| 739 | return feerate <= current; |
| 740 | return true; |
| 741 | } |
| 742 | |
| 743 | static void handle_peer_feechange(struct peer *peer, const u8 *msg) |
| 744 | { |
no test coverage detected