mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +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:
@@ -2116,7 +2116,7 @@ static u8 *scriptpubkey_to_remote(const tal_t *ctx,
|
||||
*/
|
||||
if (option_anchor_outputs) {
|
||||
return scriptpubkey_p2wsh(ctx,
|
||||
anchor_to_remote_redeem(tmpctx,
|
||||
bitcoin_wscript_to_remote_anchored(tmpctx,
|
||||
remotekey,
|
||||
csv_lock));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user