Commit ead6a8c
committed
Expose node announcement feature flags
Expose the feature flags advertised by the node in its
node_announcement message via NodeStatus::node_features.
For UniFFI consumers, expose NodeFeatures as an object with BOLT 9 byte
encoding helpers and typed feature accessors.
This intentionally avoids exposing freestanding Node methods for init,
channel, invoice, or node feature contexts. Channel and invoice features
are context-specific, and exposing node-level helpers for them could be
confused with negotiated per-peer, per-channel, or per-invoice features.
Those negotiated feature surfaces are handled separately.1 parent 109978d commit ead6a8c
2 files changed
Lines changed: 37 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
1519 | 1520 | | |
1520 | 1521 | | |
1521 | 1522 | | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
1522 | 1530 | | |
1523 | 1531 | | |
1524 | 1532 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
| 155 | + | |
155 | 156 | | |
156 | 157 | | |
157 | 158 | | |
| |||
160 | 161 | | |
161 | 162 | | |
162 | 163 | | |
| 164 | + | |
163 | 165 | | |
164 | 166 | | |
165 | 167 | | |
| |||
775 | 777 | | |
776 | 778 | | |
777 | 779 | | |
| 780 | + | |
778 | 781 | | |
779 | 782 | | |
780 | 783 | | |
| |||
786 | 789 | | |
787 | 790 | | |
788 | 791 | | |
| 792 | + | |
789 | 793 | | |
790 | 794 | | |
791 | 795 | | |
| |||
2053 | 2057 | | |
2054 | 2058 | | |
2055 | 2059 | | |
| 2060 | + | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
| 2072 | + | |
| 2073 | + | |
| 2074 | + | |
| 2075 | + | |
| 2076 | + | |
| 2077 | + | |
| 2078 | + | |
| 2079 | + | |
| 2080 | + | |
| 2081 | + | |
2056 | 2082 | | |
2057 | 2083 | | |
2058 | 2084 | | |
| |||
2114 | 2140 | | |
2115 | 2141 | | |
2116 | 2142 | | |
| 2143 | + | |
| 2144 | + | |
2117 | 2145 | | |
2118 | 2146 | | |
2119 | 2147 | | |
| |||
0 commit comments