| 1909 | } |
| 1910 | |
| 1911 | static void handle_peer_locked(struct subd *dualopend, const u8 *msg) |
| 1912 | { |
| 1913 | struct pubkey remote_per_commit; |
| 1914 | struct channel *channel = dualopend->channel; |
| 1915 | struct short_channel_id *remote_alias; |
| 1916 | |
| 1917 | if (!fromwire_dualopend_peer_locked(msg, msg, |
| 1918 | &remote_per_commit, |
| 1919 | &remote_alias)) { |
| 1920 | channel_internal_error(channel, |
| 1921 | "Bad WIRE_DUALOPEND_PEER_LOCKED: %s", |
| 1922 | tal_hex(msg, msg)); |
| 1923 | return; |
| 1924 | } |
| 1925 | |
| 1926 | /* Updates channel with the next per-commit point etc, calls |
| 1927 | * channel_internal_error on failure */ |
| 1928 | if (!channel_on_channel_ready(channel, &remote_per_commit, remote_alias)) |
| 1929 | return; |
| 1930 | |
| 1931 | /* Remember that we got the lock-in */ |
| 1932 | wallet_channel_save(dualopend->ld->wallet, channel); |
| 1933 | } |
| 1934 | |
| 1935 | static void handle_channel_locked(struct subd *dualopend, |
| 1936 | const int *fds, |
no test coverage detected