mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
script: rename scriptpubkey_htlc_send to/recv bitcoin_redeem_htlc_send/recv
They could be scriptpubkeys, but they're actually used inside p2wsh, so they're really witness scripts. We use the term "redeem" elsewhere from when we were using p2sh, though. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -286,13 +286,13 @@ u8 **bitcoin_witness_2of2(const tal_t *ctx,
|
||||
}
|
||||
|
||||
/* Create a script for our HTLC output: sending. */
|
||||
u8 *scriptpubkey_htlc_send(const tal_t *ctx,
|
||||
const struct pubkey *ourkey,
|
||||
const struct pubkey *theirkey,
|
||||
const struct abs_locktime *htlc_abstimeout,
|
||||
const struct rel_locktime *locktime,
|
||||
const struct sha256 *commit_revoke,
|
||||
const struct sha256 *rhash)
|
||||
u8 *bitcoin_redeem_htlc_send(const tal_t *ctx,
|
||||
const struct pubkey *ourkey,
|
||||
const struct pubkey *theirkey,
|
||||
const struct abs_locktime *htlc_abstimeout,
|
||||
const struct rel_locktime *locktime,
|
||||
const struct sha256 *commit_revoke,
|
||||
const struct sha256 *rhash)
|
||||
{
|
||||
/* R value presented: -> them.
|
||||
* Commit revocation value presented: -> them.
|
||||
@@ -334,13 +334,13 @@ u8 *scriptpubkey_htlc_send(const tal_t *ctx,
|
||||
}
|
||||
|
||||
/* Create a script for our HTLC output: receiving. */
|
||||
u8 *scriptpubkey_htlc_recv(const tal_t *ctx,
|
||||
const struct pubkey *ourkey,
|
||||
const struct pubkey *theirkey,
|
||||
const struct abs_locktime *htlc_abstimeout,
|
||||
const struct rel_locktime *locktime,
|
||||
const struct sha256 *commit_revoke,
|
||||
const struct sha256 *rhash)
|
||||
u8 *bitcoin_redeem_htlc_recv(const tal_t *ctx,
|
||||
const struct pubkey *ourkey,
|
||||
const struct pubkey *theirkey,
|
||||
const struct abs_locktime *htlc_abstimeout,
|
||||
const struct rel_locktime *locktime,
|
||||
const struct sha256 *commit_revoke,
|
||||
const struct sha256 *rhash)
|
||||
{
|
||||
/* R value presented: -> us.
|
||||
* Commit revocation value presented: -> them.
|
||||
|
||||
Reference in New Issue
Block a user