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