When we receive the remote announcement message, we will also call this function */
| 2612 | |
| 2613 | /* When we receive the remote announcement message, we will also call this function */ |
| 2614 | void 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 | |
| 2632 | void wallet_htlcsigs_confirm_inflight(struct wallet *w, struct channel *chan, |