mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
bitcoin: rename confusing functions.
1. anchor_to_remote_redeem => bitcoin_wscript_to_remote_anchored, which matches other witness script producing functions and makes it clear that it's a to_remote variant. 2. is_anchor_witness_script => is_to_remote_anchored_witness_script makes it clear that it's about a to_remote output (as altered when anchors are enabled) not an anchor output! Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -304,7 +304,7 @@ struct bitcoin_tx *commit_tx(const tal_t *ctx,
|
||||
* Otherwise, this output is a simple P2WPKH to `remotepubkey`.
|
||||
*/
|
||||
if (option_anchor_outputs) {
|
||||
redeem = anchor_to_remote_redeem(tmpctx,
|
||||
redeem = bitcoin_wscript_to_remote_anchored(tmpctx,
|
||||
&keyset->other_payment_key,
|
||||
(!side) == lessor ?
|
||||
csv_lock : 1);
|
||||
|
||||
Reference in New Issue
Block a user