libplugin: It's featurebits, not features

The documentation was wrong, and I copied my mistake to `libplugin` where it
was then ignored instead of ORed into the node's featurebits. This fixes both.
This commit is contained in:
Christian Decker
2020-04-27 22:33:50 +02:00
committed by neil saitug
parent 8c23f22591
commit 9f298330b2
3 changed files with 3 additions and 4 deletions

View File

@@ -604,7 +604,7 @@ handle_getmanifest(struct command *getmanifest_cmd)
json_array_end(params);
if (p->our_features != NULL) {
json_object_start(params, "features");
json_object_start(params, "featurebits");
for (size_t i = 0; i < NUM_FEATURE_PLACE; i++) {
u8 *f = p->our_features->bits[i];
const char *fieldname = feature_place_names[i];