MCPcopy Create free account
hub / github.com/ElementsProject/lightning / is_node_announcement

Function is_node_announcement

devtools/dump-gossipstore.c:70–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70static bool is_node_announcement(const u8 *msg, struct node_id **node)
71{
72 secp256k1_ecdsa_signature sig;
73 u8 *u8arr;
74 u32 timestamp;
75 u8 rgb_color[3], alias[32];
76 struct tlv_node_ann_tlvs *tlvs;
77
78 if (fromwire_peektype(msg) != WIRE_NODE_ANNOUNCEMENT)
79 return false;
80
81 *node = tal(msg, struct node_id);
82 if (!fromwire_node_announcement(msg, msg, &sig, &u8arr, &timestamp, *node, rgb_color, alias, &u8arr, &tlvs))
83 *node = tal_free(*node);
84 return true;
85}
86
87int main(int argc, char *argv[])
88{

Callers 1

mainFunction · 0.85

Calls 2

fromwire_peektypeFunction · 0.85
tal_freeFunction · 0.85

Tested by

no test coverage detected