[lightning] start integrating features bits in the node page

This commit is contained in:
nymkappa
2023-07-05 14:00:30 +02:00
parent 4d41d36fe7
commit 556eb65320
5 changed files with 67 additions and 11 deletions

View File

@@ -46,10 +46,10 @@ class LndApi implements AbstractLightningApi {
for (const node of graph.nodes) {
const nodeFeatures: ILightningApi.Feature[] = [];
for (const bit in node.features) {
for (const bit in node.features) {
nodeFeatures.push({
bit: parseInt(bit, 10),
name: node.features[bit].name,
name: node.features[bit].name,
is_required: node.features[bit].is_required,
is_known: node.features[bit].is_known,
});