mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-21 08:04:26 +01:00
bkpr: new method, "is_external_account"
Utility method to figure out if an account is "external"
This commit is contained in:
@@ -30,3 +30,8 @@ bool is_channel_account(const struct account *acct)
|
|||||||
return !streq(acct->name, WALLET)
|
return !streq(acct->name, WALLET)
|
||||||
&& !streq(acct->name, "external");
|
&& !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? */
|
/* Is this a channel account? */
|
||||||
bool is_channel_account(const struct account *acct);
|
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 */
|
#endif /* LIGHTNING_PLUGINS_BKPR_ACCOUNT_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user