mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
14 lines
323 B
C
14 lines
323 B
C
|
#include "config.h"
|
||
|
#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;
|
||
|
}
|