Logo
Explore Help
Sign In
davide/palladum-lightning
1
0
Fork 0
You've already forked palladum-lightning
Code Issues Pull Requests Actions 5 Packages Projects Releases Wiki Activity
Files
main
palladum-lightning/common/hsm_capable.c

15 lines
349 B
C
Raw Permalink Normal View History

channeld: add hsm_capabilities and add hsm_is_capable to common Changelog-Added: Added hsm_capabilities and hsm_is_capable to channeld.
2024-01-18 13:19:55 -08:00
#include "config.h"
global: remove unnecessary includes from headers. Each header should only include the other headers it needs to compile; `devtools/reduce-includes.sh */*.h` does this. The C files then need additional includes if they don't compile. And remove the entirely useless wire/onion_wire.h, which only serves to include wire/onion_wiregen.h. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2025-10-22 19:44:27 +10:30
#include <ccan/tal/tal.h>
channeld: add hsm_capabilities and add hsm_is_capable to common Changelog-Added: Added hsm_capabilities and hsm_is_capable to channeld.
2024-01-18 13:19:55 -08:00
#include <common/hsm_capable.h>
/* Is this capability supported by the HSM? (So far, always a message
* number) */
bool hsm_is_capable(const u32 *capabilities, u32 msgtype)
{
for (size_t i = 0; i < tal_count(capabilities); i++) {
if (capabilities[i] == msgtype)
return true;
}
return false;
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 2400ms Template: 39ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API