Generalize feature methods to work in any context
authorJeffrey Czyz <jkczyz@gmail.com>
Thu, 16 Apr 2020 05:44:43 +0000 (22:44 -0700)
committerJeffrey Czyz <jkczyz@gmail.com>
Wed, 29 Apr 2020 18:11:51 +0000 (11:11 -0700)
commit65ff1bf0beaeb33397c5024d278a65a780fc8ffd
tree8a87c70808a2a59f712fc274b9c3b8b6a12b7ead
parent9dd2be15e90d9fa7369e7f9757cabce81c293602
Generalize feature methods to work in any context

Refactoring the features module allowed for making code specific to
certain contexts generalizable. Specifically, KNOWN_FEATURE_MASK
is defined on Context instead of hardcoded in each method
specialization. Thus, such methods are no longer required.
lightning/src/ln/features.rs