@@ -54,7 +54,7 @@ static struct bitcoin_tx *close_tx(const tal_t *ctx,
5454 const struct chainparams * chainparams ,
5555 struct per_peer_state * pps ,
5656 const struct channel_id * channel_id ,
57- u32 local_wallet_index ,
57+ u32 * local_wallet_index ,
5858 const struct ext_key * local_wallet_ext_key ,
5959 u8 * scriptpubkey [NUM_SIDES ],
6060 const struct bitcoin_outpoint * funding ,
@@ -150,7 +150,7 @@ static void send_offer(struct per_peer_state *pps,
150150 const struct channel_id * channel_id ,
151151 const struct pubkey funding_pubkey [NUM_SIDES ],
152152 const u8 * funding_wscript ,
153- u32 local_wallet_index ,
153+ u32 * local_wallet_index ,
154154 const struct ext_key * local_wallet_ext_key ,
155155 u8 * scriptpubkey [NUM_SIDES ],
156156 const struct bitcoin_outpoint * funding ,
@@ -249,7 +249,7 @@ receive_offer(struct per_peer_state *pps,
249249 const struct channel_id * channel_id ,
250250 const struct pubkey funding_pubkey [NUM_SIDES ],
251251 const u8 * funding_wscript ,
252- u32 local_wallet_index ,
252+ u32 * local_wallet_index ,
253253 const struct ext_key * local_wallet_ext_key ,
254254 u8 * scriptpubkey [NUM_SIDES ],
255255 const struct bitcoin_outpoint * funding ,
@@ -590,7 +590,7 @@ static size_t closing_tx_weight_estimate(u8 *scriptpubkey[NUM_SIDES],
590590 const struct amount_sat * out ,
591591 struct amount_sat funding_sats ,
592592 struct amount_sat dust_limit ,
593- u32 local_wallet_index ,
593+ u32 * local_wallet_index ,
594594 const struct ext_key * local_wallet_ext_key )
595595{
596596 /* We create a dummy close */
@@ -717,7 +717,7 @@ static void do_quickclose(struct amount_sat offer[NUM_SIDES],
717717 const struct channel_id * channel_id ,
718718 const struct pubkey funding_pubkey [NUM_SIDES ],
719719 const u8 * funding_wscript ,
720- u32 local_wallet_index ,
720+ u32 * local_wallet_index ,
721721 const struct ext_key * local_wallet_ext_key ,
722722 u8 * scriptpubkey [NUM_SIDES ],
723723 const struct bitcoin_outpoint * funding ,
@@ -902,8 +902,8 @@ int main(int argc, char *argv[])
902902 u32 min_feerate , initial_feerate , * max_feerate ;
903903 struct feerange feerange ;
904904 enum side opener ;
905- u32 local_wallet_index ;
906- struct ext_key local_wallet_ext_key ;
905+ u32 * local_wallet_index ;
906+ struct ext_key * local_wallet_ext_key ;
907907 u8 * scriptpubkey [NUM_SIDES ], * funding_wscript ;
908908 u64 fee_negotiation_step ;
909909 u8 fee_negotiation_step_unit ;
@@ -957,7 +957,7 @@ int main(int argc, char *argv[])
957957 out , funding_sats ,
958958 our_dust_limit ,
959959 local_wallet_index ,
960- & local_wallet_ext_key ),
960+ local_wallet_ext_key ),
961961 min_feerate , initial_feerate , max_feerate ,
962962 commitment_fee , funding_sats , opener ,
963963 & min_fee_to_accept , & offer [LOCAL ], & max_fee_to_accept );
@@ -1015,7 +1015,7 @@ int main(int argc, char *argv[])
10151015 if (whose_turn == LOCAL ) {
10161016 send_offer (pps , chainparams ,
10171017 & channel_id , funding_pubkey , funding_wscript ,
1018- local_wallet_index , & local_wallet_ext_key ,
1018+ local_wallet_index , local_wallet_ext_key ,
10191019 scriptpubkey , & funding ,
10201020 funding_sats , out , opener ,
10211021 our_dust_limit ,
@@ -1038,7 +1038,7 @@ int main(int argc, char *argv[])
10381038 & channel_id , funding_pubkey ,
10391039 funding_wscript ,
10401040 local_wallet_index ,
1041- & local_wallet_ext_key ,
1041+ local_wallet_ext_key ,
10421042 scriptpubkey , & funding ,
10431043 funding_sats ,
10441044 out , opener ,
@@ -1052,7 +1052,7 @@ int main(int argc, char *argv[])
10521052 do_quickclose (offer ,
10531053 pps , & channel_id , funding_pubkey ,
10541054 funding_wscript ,
1055- local_wallet_index , & local_wallet_ext_key ,
1055+ local_wallet_index , local_wallet_ext_key ,
10561056 scriptpubkey ,
10571057 & funding ,
10581058 funding_sats , out , opener ,
@@ -1087,7 +1087,7 @@ int main(int argc, char *argv[])
10871087 send_offer (pps , chainparams , & channel_id ,
10881088 funding_pubkey , funding_wscript ,
10891089 local_wallet_index ,
1090- & local_wallet_ext_key ,
1090+ local_wallet_ext_key ,
10911091 scriptpubkey , & funding ,
10921092 funding_sats , out , opener ,
10931093 our_dust_limit ,
@@ -1105,7 +1105,7 @@ int main(int argc, char *argv[])
11051105 funding_pubkey ,
11061106 funding_wscript ,
11071107 local_wallet_index ,
1108- & local_wallet_ext_key ,
1108+ local_wallet_ext_key ,
11091109 scriptpubkey , & funding ,
11101110 funding_sats ,
11111111 out , opener ,
0 commit comments