mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 01:43:36 +01:00
bkpr: new method, "is_external_account"
Utility method to figure out if an account is "external"
This commit is contained in:
parent
97204d6e0a
commit
9346158290
@ -30,3 +30,8 @@ bool is_channel_account(const struct account *acct)
|
||||
return !streq(acct->name, WALLET)
|
||||
&& !streq(acct->name, "external");
|
||||
}
|
||||
|
||||
bool is_external_account(const struct account *acct)
|
||||
{
|
||||
return streq(acct->name, "external");
|
||||
}
|
||||
|
@ -46,4 +46,6 @@ struct account *new_account(const tal_t *ctx,
|
||||
|
||||
/* Is this a channel account? */
|
||||
bool is_channel_account(const struct account *acct);
|
||||
/* is this the 'external' account */
|
||||
bool is_external_account(const struct account *acct);
|
||||
#endif /* LIGHTNING_PLUGINS_BKPR_ACCOUNT_H */
|
||||
|
Loading…
Reference in New Issue
Block a user