Browse Source

wallet: Implement delete for wallet_shachain

ppa-0.6.1
Christian Decker 8 years ago
committed by Rusty Russell
parent
commit
1ff64ef07c
  1. 14
      wallet/wallet.c

14
wallet/wallet.c

@ -344,3 +344,17 @@ bool wallet_shachain_load(struct wallet *wallet, u64 id,
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…
Cancel
Save