mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
wallet: Implement delete for wallet_shachain
This commit is contained in:
parent
416d6bf860
commit
1ff64ef07c
@ -344,3 +344,17 @@ bool wallet_shachain_load(struct wallet *wallet, u64 id,
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* wallet_shachain_delete - Drop the shachain from the database
|
||||||
|
*
|
||||||
|
* Deletes the shachain from the database, including dependent
|
||||||
|
* shachain_known items.
|
||||||
|
*/
|
||||||
|
/* TOOD(cdecker) Uncomment once we have implemented channel delete
|
||||||
|
static bool wallet_shachain_delete(struct wallet *w,
|
||||||
|
struct wallet_shachain *chain)
|
||||||
|
{
|
||||||
|
return db_exec(__func__, w->db,
|
||||||
|
"DELETE FROM shachains WHERE id=%" PRIu64, chain->id);
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user