| 958 | } |
| 959 | |
| 960 | static void handle_feerates(struct info *info, const u8 *inmsg) |
| 961 | { |
| 962 | u32 feerate, min, max, penalty, opening, splicing; |
| 963 | |
| 964 | if (!fromwire_channeld_feerates(inmsg, &feerate, |
| 965 | &min, &max, &penalty, &opening, |
| 966 | &splicing)) |
| 967 | master_badmsg(WIRE_CHANNELD_FEERATES, inmsg); |
| 968 | |
| 969 | /* BOLT #2: |
| 970 | * |
| 971 | * The node _responsible_ for paying the Bitcoin fee: |
| 972 | * - SHOULD send `update_fee` to ensure the current fee rate is |
| 973 | * sufficient (by a significant margin) for timely processing of the |
| 974 | * commitment transaction. |
| 975 | */ |
| 976 | if (info->channel->opener == LOCAL) { |
| 977 | if (!channel_update_feerate(info->channel, feerate)) { |
| 978 | abort(); |
| 979 | } |
| 980 | } |
| 981 | } |
| 982 | |
| 983 | static void handle_blockheight(struct info *info, const u8 *inmsg) |
| 984 | { |
no test coverage detected