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

Function wallet_announcement_save

wallet/wallet.c:2614–2629  ·  view source on GitHub ↗

When we receive the remote announcement message, we will also call this function */

Source from the content-addressed store, hash-verified

2612
2613/* When we receive the remote announcement message, we will also call this function */
2614void wallet_announcement_save(struct wallet *w, u64 id,
2615 secp256k1_ecdsa_signature *remote_ann_node_sig,
2616 secp256k1_ecdsa_signature *remote_ann_bitcoin_sig)
2617{
2618 struct db_stmt *stmt;
2619
2620 stmt = db_prepare_v2(w->db, SQL("UPDATE channels SET"
2621 " remote_ann_node_sig=?,"
2622 " remote_ann_bitcoin_sig=?"
2623 " WHERE id=?"));
2624
2625 db_bind_signature(stmt, remote_ann_node_sig);
2626 db_bind_signature(stmt, remote_ann_bitcoin_sig);
2627 db_bind_u64(stmt, id);
2628 db_exec_prepared_v2(take(stmt));
2629}
2630
2631
2632void wallet_htlcsigs_confirm_inflight(struct wallet *w, struct channel *chan,

Callers 3

test_channel_crudFunction · 0.85
set_gossip_stateFunction · 0.85

Calls 3

db_bind_signatureFunction · 0.85
db_bind_u64Function · 0.85
db_exec_prepared_v2Function · 0.85

Tested by 1

test_channel_crudFunction · 0.68