@@ -247,7 +247,7 @@ void marshal_rhashes(const struct sha256 *rhashes,
247247 }
248248}
249249
250- void marshal_htlc (const struct existing_htlc *htlc, HTLCInfo *o_htlc)
250+ void marshal_htlc (const struct simple_htlc *htlc, HTLCInfo *o_htlc)
251251{
252252 o_htlc->set_value_sat (htlc->amount .millisatoshis / 1000 );
253253 o_htlc->set_payment_hash (&htlc->payment_hash , sizeof (htlc->payment_hash ));
@@ -772,7 +772,7 @@ proxy_stat proxy_handle_sign_remote_commitment_tx(
772772 struct node_id *peer_id,
773773 u64 dbid,
774774 const struct pubkey *remote_per_commit,
775- struct existing_htlc **htlcs,
775+ struct simple_htlc **htlcs,
776776 u64 commit_num, u32 feerate,
777777 struct bitcoin_signature *o_sig)
778778{
@@ -791,7 +791,7 @@ proxy_stat proxy_handle_sign_remote_commitment_tx(
791791 dump_pubkey (counterparty_funding_pubkey).c_str (),
792792 dump_pubkey (remote_per_commit).c_str (),
793793 dump_tx (tx).c_str (),
794- dump_htlcs ((const struct existing_htlc **) htlcs, tal_count (htlcs)).c_str (),
794+ dump_htlcs ((const struct simple_htlc **) htlcs, tal_count (htlcs)).c_str (),
795795 commit_num, feerate
796796 );
797797
@@ -803,7 +803,7 @@ proxy_stat proxy_handle_sign_remote_commitment_tx(
803803 req.mutable_remote_per_commit_point ());
804804 marshal_single_input_tx (tx, NULL , req.mutable_tx ());
805805 for (size_t ii = 0 ; ii < tal_count (htlcs); ++ii) {
806- if (htlc_state_owner ( htlcs[ii]->state ) == REMOTE) {
806+ if (htlcs[ii]->side == REMOTE) {
807807 marshal_htlc (htlcs[ii], req.add_offered_htlcs ());
808808 } else {
809809 marshal_htlc (htlcs[ii], req.add_received_htlcs ());
@@ -1109,7 +1109,7 @@ proxy_stat proxy_handle_sign_commitment_tx(
11091109 const struct pubkey *counterparty_funding_pubkey,
11101110 struct node_id *peer_id,
11111111 u64 dbid,
1112- struct existing_htlc **htlcs,
1112+ struct simple_htlc **htlcs,
11131113 u64 commit_num, u32 feerate,
11141114 struct bitcoin_signature *o_sig)
11151115{
@@ -1126,7 +1126,7 @@ proxy_stat proxy_handle_sign_commitment_tx(
11261126 dbid,
11271127 dump_pubkey (counterparty_funding_pubkey).c_str (),
11281128 dump_tx (tx).c_str (),
1129- dump_htlcs ((const struct existing_htlc **) htlcs, tal_count (htlcs)).c_str (),
1129+ dump_htlcs ((const struct simple_htlc **) htlcs, tal_count (htlcs)).c_str (),
11301130 commit_num, feerate
11311131 );
11321132
@@ -1136,7 +1136,7 @@ proxy_stat proxy_handle_sign_commitment_tx(
11361136 marshal_channel_nonce (peer_id, dbid, req.mutable_channel_nonce ());
11371137 marshal_single_input_tx (tx, NULL , req.mutable_tx ());
11381138 for (size_t ii = 0 ; ii < tal_count (htlcs); ++ii) {
1139- if (htlc_state_owner ( htlcs[ii]->state ) == LOCAL) {
1139+ if (htlcs[ii]->side == LOCAL) {
11401140 marshal_htlc (htlcs[ii], req.add_offered_htlcs ());
11411141 } else {
11421142 marshal_htlc (htlcs[ii], req.add_received_htlcs ());
@@ -1170,7 +1170,7 @@ proxy_stat proxy_handle_validate_commitment_tx(
11701170 struct bitcoin_tx *tx,
11711171 struct node_id *peer_id,
11721172 u64 dbid,
1173- struct existing_htlc **htlcs,
1173+ struct simple_htlc **htlcs,
11741174 u64 commit_num, u32 feerate,
11751175 struct bitcoin_signature *commit_sig,
11761176 struct bitcoin_signature *htlc_sigs,
@@ -1190,7 +1190,7 @@ proxy_stat proxy_handle_validate_commitment_tx(
11901190 dump_node_id (peer_id).c_str (),
11911191 dbid,
11921192 dump_tx (tx).c_str (),
1193- dump_htlcs ((const struct existing_htlc **) htlcs, tal_count (htlcs)).c_str (),
1193+ dump_htlcs ((const struct simple_htlc **) htlcs, tal_count (htlcs)).c_str (),
11941194 commit_num, feerate,
11951195 dump_bitcoin_signature (commit_sig).c_str (),
11961196 dump_htlc_signatures (htlc_sigs).c_str ()
@@ -1202,7 +1202,7 @@ proxy_stat proxy_handle_validate_commitment_tx(
12021202 marshal_channel_nonce (peer_id, dbid, req.mutable_channel_nonce ());
12031203 marshal_single_input_tx (tx, NULL , req.mutable_tx ());
12041204 for (size_t ii = 0 ; ii < tal_count (htlcs); ++ii) {
1205- if (htlc_state_owner ( htlcs[ii]->state ) == LOCAL) {
1205+ if (htlcs[ii]->side == LOCAL) {
12061206 marshal_htlc (htlcs[ii], req.add_offered_htlcs ());
12071207 } else {
12081208 marshal_htlc (htlcs[ii], req.add_received_htlcs ());
0 commit comments