@@ -136,7 +136,7 @@ void marshal_pubkey(struct pubkey const *pp, PubKey *o_pp)
136
136
void marshal_utxo (struct utxo const *up, InputDescriptor *idesc)
137
137
{
138
138
idesc->mutable_key_loc ()->set_key_index (up->keyindex );
139
- idesc->mutable_prev_output ()->set_value (up->amount .satoshis );
139
+ idesc->mutable_prev_output ()->set_value_sat (up->amount .satoshis );
140
140
/* FIXME - where does pk_script come from? */
141
141
idesc->set_spend_type (up->is_p2sh
142
142
? SpendType::P2SH_P2WPKH
@@ -192,7 +192,7 @@ void marshal_single_input_tx(struct bitcoin_tx const *tx,
192
192
193
193
assert (tx->wtx ->num_inputs == 1 );
194
194
InputDescriptor *idesc = o_tp->add_input_descs ();
195
- idesc->mutable_prev_output ()->set_value (tx->input_amounts [0 ]->satoshis );
195
+ idesc->mutable_prev_output ()->set_value_sat (tx->input_amounts [0 ]->satoshis );
196
196
/* FIXME - What else needs to be set? */
197
197
198
198
for (size_t ii = 0 ; ii < tx->wtx ->num_outputs ; ii++) {
@@ -561,7 +561,7 @@ proxy_stat proxy_handle_ready_channel(
561
561
marshal_node_id (&self_id, req.mutable_node_id ());
562
562
marshal_channel_nonce (peer_id, dbid, req.mutable_channel_nonce ());
563
563
req.set_is_outbound (is_outbound);
564
- req.set_channel_value_satoshi (channel_value->satoshis );
564
+ req.set_channel_value_sat (channel_value->satoshis );
565
565
marshal_outpoint (funding_txid, funding_txout, req.mutable_funding_outpoint ());
566
566
req.set_local_to_self_delay (local_to_self_delay);
567
567
marshal_script (local_shutdown_script, req.mutable_local_shutdown_script ());
0 commit comments