Skip to content

Commit b0d7149

Browse files
committed
TxOut was replaced in API w/ it's only field.
1 parent 99f0c69 commit b0d7149

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/remote_hsmd/proxy.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ void marshal_pubkey(struct pubkey const *pp, PubKey *o_pp)
145145
void marshal_utxo(struct utxo const *up, InputDescriptor *idesc)
146146
{
147147
idesc->mutable_key_loc()->add_key_path(up->keyindex);
148-
idesc->mutable_prev_output()->set_value_sat(up->amount.satoshis);
148+
idesc->set_value_sat(up->amount.satoshis);
149149
idesc->set_spend_type(up->is_p2sh
150150
? SpendType::P2SH_P2WPKH
151151
: SpendType::P2WPKH);
@@ -195,7 +195,7 @@ void marshal_single_input_tx(struct bitcoin_tx const *tx,
195195
assert(tx->wtx->num_inputs == 1);
196196
assert(tx->psbt->num_inputs == 1);
197197
InputDescriptor *idesc = o_tp->add_input_descs();
198-
idesc->mutable_prev_output()->set_value_sat(psbt_input_get_amount(tx->psbt, 0).satoshis);
198+
idesc->set_value_sat(psbt_input_get_amount(tx->psbt, 0).satoshis);
199199
if (redeem_script)
200200
idesc->set_redeem_script((const char *) redeem_script,
201201
tal_count(redeem_script));

0 commit comments

Comments
 (0)