| 3030 | } |
| 3031 | |
| 3032 | static void their_unilateral_local(struct tracked_output ***outs, |
| 3033 | const struct tx_parts *tx, |
| 3034 | const struct bitcoin_outpoint *outpoint, |
| 3035 | u32 tx_blockheight, |
| 3036 | struct amount_sat amt, |
| 3037 | const u8 *local_scriptpubkey, |
| 3038 | enum tx_type tx_type, |
| 3039 | u32 csv_lock) |
| 3040 | { |
| 3041 | struct tracked_output *out; |
| 3042 | /* BOLT #5: |
| 3043 | * |
| 3044 | * - MAY take no action in regard to the associated |
| 3045 | * `to_remote`, which is simply a P2WPKH output to |
| 3046 | * the *local node*. |
| 3047 | * - Note: `to_remote` is considered *resolved* by the |
| 3048 | * commitment transaction itself. |
| 3049 | */ |
| 3050 | out = new_tracked_output(outs, |
| 3051 | outpoint, |
| 3052 | tx_blockheight, |
| 3053 | tx_type, |
| 3054 | amt, |
| 3055 | OUTPUT_TO_US, |
| 3056 | NULL, NULL, |
| 3057 | NULL); |
| 3058 | ignore_output(out); |
| 3059 | |
| 3060 | tell_wallet_to_remote(tx, outpoint, |
| 3061 | tx_blockheight, |
| 3062 | local_scriptpubkey, |
| 3063 | remote_per_commitment_point, |
| 3064 | commit_num >= static_remotekey_start[REMOTE], |
| 3065 | csv_lock); |
| 3066 | } |
| 3067 | |
| 3068 | |
| 3069 | /* BOLT #5: |
no test coverage detected