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

Function wallet_blocks_rollback

wallet/wallet.c:4954–4961  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4952}
4953
4954void wallet_blocks_rollback(struct wallet *w, u32 height)
4955{
4956 struct db_stmt *stmt = db_prepare_v2(w->db, SQL("DELETE FROM blocks "
4957 "WHERE height > ?"));
4958 db_bind_int(stmt, height);
4959 db_exec_prepared_v2(take(stmt));
4960 refill_outpointfilters(w);
4961}
4962
4963bool wallet_outpoint_spend(const tal_t *ctx, struct wallet *w, const u32 blockheight,
4964 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