~This stub implementation is overriden by fully validating signers * that need the unchanging channel parameters. */
| 370 | /* ~This stub implementation is overriden by fully validating signers |
| 371 | * that need the unchanging channel parameters. */ |
| 372 | static u8 *handle_setup_channel(struct hsmd_client *c, const u8 *msg_in) |
| 373 | { |
| 374 | bool is_outbound; |
| 375 | struct amount_sat channel_value; |
| 376 | struct amount_msat push_value; |
| 377 | struct bitcoin_txid funding_txid; |
| 378 | u16 funding_txout; |
| 379 | u16 local_to_self_delay; |
| 380 | u8 *local_shutdown_script; |
| 381 | u32 *local_shutdown_wallet_index; |
| 382 | struct basepoints remote_basepoints; |
| 383 | struct pubkey remote_funding_pubkey; |
| 384 | u16 remote_to_self_delay; |
| 385 | u8 *remote_shutdown_script; |
| 386 | struct channel_type *channel_type; |
| 387 | |
| 388 | if (!fromwire_hsmd_setup_channel(tmpctx, msg_in, &is_outbound, |
| 389 | &channel_value, &push_value, &funding_txid, |
| 390 | &funding_txout, &local_to_self_delay, |
| 391 | &local_shutdown_script, |
| 392 | &local_shutdown_wallet_index, |
| 393 | &remote_basepoints, |
| 394 | &remote_funding_pubkey, |
| 395 | &remote_to_self_delay, |
| 396 | &remote_shutdown_script, |
| 397 | &channel_type)) |
| 398 | return hsmd_status_malformed_request(c, msg_in); |
| 399 | |
| 400 | /* Stub implementation */ |
| 401 | |
| 402 | return towire_hsmd_setup_channel_reply(NULL); |
| 403 | } |
| 404 | |
| 405 | /* ~This stub implementation is overriden by fully validating signers |
| 406 | * that need to manage per-channel state. */ |
no test coverage detected