MCPcopy Create free account
hub / github.com/ElementsProject/lightning / new_channel

Function new_channel

wallet/test/run-db.c:174–250  ·  view source on GitHub ↗

Generated stub for new_channel */

Source from the content-addressed store, hash-verified

172{ fprintf(stderr, "logv called!\n"); abort(); }
173/* Generated stub for new_channel */
174struct channel *new_channel(struct peer *peer UNNEEDED, u64 dbid UNNEEDED,
175 /* NULL or stolen */
176 struct wallet_shachain *their_shachain STEALS UNNEEDED,
177 enum channel_state state UNNEEDED,
178 enum side opener UNNEEDED,
179 /* NULL or stolen */
180 struct logger *log STEALS UNNEEDED,
181 const char *transient_billboard TAKES UNNEEDED,
182 u8 channel_flags UNNEEDED,
183 bool req_confirmed_ins_local UNNEEDED,
184 bool req_confirmed_ins_remote UNNEEDED,
185 const struct channel_config *our_config UNNEEDED,
186 u32 minimum_depth UNNEEDED,
187 u64 next_index_local UNNEEDED,
188 u64 next_index_remote UNNEEDED,
189 u64 next_htlc_id UNNEEDED,
190 const struct bitcoin_outpoint *funding UNNEEDED,
191 struct amount_sat funding_sats UNNEEDED,
192 struct amount_msat push UNNEEDED,
193 struct amount_sat our_funds UNNEEDED,
194 bool remote_channel_ready UNNEEDED,
195 /* NULL or stolen */
196 struct short_channel_id *scid TAKES UNNEEDED,
197 struct short_channel_id *old_scids TAKES UNNEEDED,
198 struct short_channel_id alias_local UNNEEDED,
199 struct short_channel_id *alias_remote STEALS UNNEEDED,
200 struct channel_id *cid UNNEEDED,
201 struct amount_msat our_msatoshi UNNEEDED,
202 struct amount_msat msatoshi_to_us_min UNNEEDED,
203 struct amount_msat msatoshi_to_us_max UNNEEDED,
204 struct bitcoin_tx *last_tx STEALS UNNEEDED,
205 const struct bitcoin_signature *last_sig UNNEEDED,
206 /* NULL or stolen */
207 const struct bitcoin_signature *last_htlc_sigs STEALS UNNEEDED,
208 const struct channel_info *channel_info UNNEEDED,
209 const struct fee_states *fee_states TAKES UNNEEDED,
210 /* NULL or stolen */
211 u8 *remote_shutdown_scriptpubkey STEALS UNNEEDED,
212 const u8 *local_shutdown_scriptpubkey UNNEEDED,
213 u64 final_key_idx UNNEEDED,
214 bool last_was_revoke UNNEEDED,
215 /* NULL or stolen */
216 struct changed_htlc *last_sent_commit STEALS UNNEEDED,
217 u32 first_blocknum UNNEEDED,
218 u32 min_possible_feerate UNNEEDED,
219 u32 max_possible_feerate UNNEEDED,
220 const struct basepoints *local_basepoints UNNEEDED,
221 const struct pubkey *local_funding_pubkey UNNEEDED,
222 bool has_future_per_commitment_point UNNEEDED,
223 u32 feerate_base UNNEEDED,
224 u32 feerate_ppm UNNEEDED,
225 /* NULL or stolen */
226 const u8 *remote_upfront_shutdown_script STEALS UNNEEDED,
227 u64 local_static_remotekey_start UNNEEDED,
228 u64 remote_static_remotekey_start UNNEEDED,
229 const struct channel_type *type STEALS UNNEEDED,
230 enum side closer UNNEEDED,
231 u32 close_attempt_height UNNEEDED,

Callers 2

wallet_stmt2channelFunction · 0.50

Calls 1

abortFunction · 0.85

Tested by

no test coverage detected