mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-20 10:39:49 +01:00
24 lines
516 B
C
24 lines
516 B
C
|
#include "config.h"
|
||
|
|
||
|
#include <common/coin_mvt.h>
|
||
|
#include <common/node_id.h>
|
||
|
#include <plugins/bkpr/account.h>
|
||
|
|
||
|
struct account *new_account(const tal_t *ctx,
|
||
|
const char *name STEALS,
|
||
|
struct node_id *peer_id)
|
||
|
{
|
||
|
struct account *a = tal(ctx, struct account);
|
||
|
|
||
|
a->name = tal_steal(a, name);
|
||
|
a->peer_id = peer_id;
|
||
|
a->is_wallet = streq(a->name, WALLET);
|
||
|
a->we_opened = false;
|
||
|
a->leased = false;
|
||
|
a->onchain_resolved_block = 0;
|
||
|
a->open_event_db_id = NULL;
|
||
|
a->closed_event_db_id = NULL;
|
||
|
|
||
|
return a;
|
||
|
}
|