Browse Source

bitcoin/tx: script arg should be const.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
htlc_accepted_hook
Rusty Russell 6 years ago
parent
commit
09d9abf12e
  1. 2
      bitcoin/tx.c
  2. 2
      bitcoin/tx.h

2
bitcoin/tx.c

@ -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;

2
bitcoin/tx.h

@ -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…
Cancel
Save