mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
Remove unused parameter ctx in wallet_peer_load(const tal_t *ctx, ...)
This commit is contained in:
parent
1f46262278
commit
7be95cee94
@ -414,8 +414,7 @@ bool wallet_shachain_load(struct wallet *wallet, u64 id,
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct peer *wallet_peer_load(const tal_t *ctx,
|
static struct peer *wallet_peer_load(struct wallet *w, const u64 dbid)
|
||||||
struct wallet *w, const u64 dbid)
|
|
||||||
{
|
{
|
||||||
const unsigned char *addrstr;
|
const unsigned char *addrstr;
|
||||||
struct peer *peer;
|
struct peer *peer;
|
||||||
@ -517,7 +516,7 @@ static struct channel *wallet_stmt2channel(const tal_t *ctx, struct wallet *w, s
|
|||||||
peer_dbid = sqlite3_column_int64(stmt, 1);
|
peer_dbid = sqlite3_column_int64(stmt, 1);
|
||||||
peer = find_peer_by_dbid(w->ld, peer_dbid);
|
peer = find_peer_by_dbid(w->ld, peer_dbid);
|
||||||
if (!peer) {
|
if (!peer) {
|
||||||
peer = wallet_peer_load(ctx, w, peer_dbid);
|
peer = wallet_peer_load(w, peer_dbid);
|
||||||
if (!peer) {
|
if (!peer) {
|
||||||
tal_free(tmpctx);
|
tal_free(tmpctx);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user