~ If we can't agree on parameters, we fail to open the channel. * Tell lightningd why. */
| 106 | /*~ If we can't agree on parameters, we fail to open the channel. |
| 107 | * Tell lightningd why. */ |
| 108 | static void NORETURN negotiation_aborted(struct state *state, const char *why) |
| 109 | { |
| 110 | status_debug("aborted opening negotiation: %s", why); |
| 111 | /*~ The "billboard" (exposed as "status" in the JSON listpeers RPC |
| 112 | * call) is a transient per-channel area which indicates important |
| 113 | * information about what is happening. It has a "permanent" area for |
| 114 | * each state, which can be used to indicate what went wrong in that |
| 115 | * state (such as here), and a single transient area for current |
| 116 | * status. */ |
| 117 | peer_billboard(true, why); |
| 118 | |
| 119 | /* Tell master that funding failed. */ |
| 120 | wire_sync_write(REQ_FD, take(towire_openingd_failed(NULL, why))); |
| 121 | exit(0); |
| 122 | } |
| 123 | |
| 124 | /*~ For negotiation failures: we tell them the parameter we didn't like. */ |
| 125 | static void NORETURN negotiation_failed(struct state *state, |
no test coverage detected