mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 22:45:27 +01:00
fixup! inflight: Add ability to delete an inflight
This commit is contained in:
parent
ac9add974e
commit
ca5c1250de
2 changed files with 4 additions and 6 deletions
|
@ -1259,8 +1259,8 @@ void wallet_inflight_add(struct wallet *w, struct channel_inflight *inflight)
|
||||||
tal_free(stmt);
|
tal_free(stmt);
|
||||||
}
|
}
|
||||||
|
|
||||||
void wallet_inflight_del(struct wallet *w, struct channel *chan,
|
void wallet_inflight_del(struct wallet *w, const struct channel *chan,
|
||||||
struct channel_inflight *inflight)
|
const struct channel_inflight *inflight)
|
||||||
{
|
{
|
||||||
struct db_stmt *stmt;
|
struct db_stmt *stmt;
|
||||||
|
|
||||||
|
@ -1273,8 +1273,6 @@ void wallet_inflight_del(struct wallet *w, struct channel *chan,
|
||||||
db_bind_txid(stmt, &inflight->funding->outpoint.txid);
|
db_bind_txid(stmt, &inflight->funding->outpoint.txid);
|
||||||
db_bind_int(stmt, inflight->funding->outpoint.n);
|
db_bind_int(stmt, inflight->funding->outpoint.n);
|
||||||
db_exec_prepared_v2(take(stmt));
|
db_exec_prepared_v2(take(stmt));
|
||||||
|
|
||||||
tal_free(inflight);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void wallet_inflight_save(struct wallet *w,
|
void wallet_inflight_save(struct wallet *w,
|
||||||
|
|
|
@ -623,8 +623,8 @@ void wallet_inflight_add(struct wallet *w, struct channel_inflight *inflight);
|
||||||
/**
|
/**
|
||||||
* Delete an inflight transaction for a channel
|
* Delete an inflight transaction for a channel
|
||||||
*/
|
*/
|
||||||
void wallet_inflight_del(struct wallet *w, struct channel *chan,
|
void wallet_inflight_del(struct wallet *w, const struct channel *chan,
|
||||||
struct channel_inflight *inflight);
|
const struct channel_inflight *inflight);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Update an existing inflight channel transaction
|
* Update an existing inflight channel transaction
|
||||||
|
|
Loading…
Add table
Reference in a new issue