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

Function wallet_blocks_rollback

wallet/wallet.c:4894–4901  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4892}
4893
4894void wallet_blocks_rollback(struct wallet *w, u32 height)
4895{
4896 struct db_stmt *stmt = db_prepare_v2(w->db, SQL("DELETE FROM blocks "
4897 "WHERE height > ?"));
4898 db_bind_int(stmt, height);
4899 db_exec_prepared_v2(take(stmt));
4900 refill_outpointfilters(w);
4901}
4902
4903bool wallet_outpoint_spend(const tal_t *ctx, struct wallet *w, const u32 blockheight,
4904 const struct bitcoin_outpoint *outpoint)

Callers 1

setup_topologyFunction · 0.85

Calls 3

db_bind_intFunction · 0.85
db_exec_prepared_v2Function · 0.85
refill_outpointfiltersFunction · 0.85

Tested by

no test coverage detected