bitcoin/tx: script arg should be const.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2019-06-05 14:58:55 +09:30
parent a4a193840f
commit 09d9abf12e
2 changed files with 2 additions and 2 deletions

View File

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

View File

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