mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +01:00
bitcoin/tx: script arg should be const.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
a4a193840f
commit
09d9abf12e
@ -13,7 +13,7 @@
|
||||
|
||||
#define SEGREGATED_WITNESS_FLAG 0x1
|
||||
|
||||
int bitcoin_tx_add_output(struct bitcoin_tx *tx, u8 *script,
|
||||
int bitcoin_tx_add_output(struct bitcoin_tx *tx, const u8 *script,
|
||||
struct amount_sat *amount)
|
||||
{
|
||||
size_t i = tx->wtx->num_outputs;
|
||||
|
@ -71,7 +71,7 @@ bool bitcoin_txid_to_hex(const struct bitcoin_txid *txid,
|
||||
struct bitcoin_tx *pull_bitcoin_tx(const tal_t *ctx,
|
||||
const u8 **cursor, size_t *max);
|
||||
|
||||
int bitcoin_tx_add_output(struct bitcoin_tx *tx, u8 *script,
|
||||
int bitcoin_tx_add_output(struct bitcoin_tx *tx, const u8 *script,
|
||||
struct amount_sat *amount);
|
||||
|
||||
int bitcoin_tx_add_input(struct bitcoin_tx *tx, const struct bitcoin_txid *txid,
|
||||
|
Loading…
Reference in New Issue
Block a user