| 2096 | } |
| 2097 | |
| 2098 | static void get_anchor_scriptpubkeys(const tal_t *ctx, u8 **anchor) |
| 2099 | { |
| 2100 | if (!option_anchor_outputs && !option_anchors_zero_fee_htlc_tx) { |
| 2101 | anchor[LOCAL] = anchor[REMOTE] = NULL; |
| 2102 | return; |
| 2103 | } |
| 2104 | |
| 2105 | for (enum side side = 0; side < NUM_SIDES; side++) { |
| 2106 | u8 *wscript = bitcoin_wscript_anchor(tmpctx, |
| 2107 | &funding_pubkey[side]); |
| 2108 | anchor[side] = scriptpubkey_p2wsh(ctx, wscript); |
| 2109 | } |
| 2110 | } |
| 2111 | |
| 2112 | static u8 *scriptpubkey_to_remote(const tal_t *ctx, |
| 2113 | const struct pubkey *remotekey, |
no test coverage detected