You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bit numbering scheme in pubkey/service features #769
You are right that that is strange. The services bitfield I copied from Bitcoin because it seemed like a good idea but we don't make use of it yet and it appears that neither does Bitcoin.
I know one very good use case for services bitfield: it will allow to find WebSocket gateway nodes for web clients because they can't create normal TCP connections. (Similar idea was proposed here.)
Also you was proposed to take one bit for TLS-enabled nodes.
Activity
Atheros1 commentedon Jan 21, 2015
It appears to me that shared.py#L149 is MSB 0.
Kagami commentedon Jan 21, 2015
Hm, you are right. I misread value 1 in
as a bit number.
But it's still not very clear because pubkey bitfield uses bits and services bitfield uses BE values.
Atheros1 commentedon Jan 21, 2015
You are right that that is strange. The services bitfield I copied from Bitcoin because it seemed like a good idea but we don't make use of it yet and it appears that neither does Bitcoin.
Kagami commentedon Jan 21, 2015
I know one very good use case for services bitfield: it will allow to find WebSocket gateway nodes for web clients because they can't create normal TCP connections. (Similar idea was proposed here.)
Also you was proposed to take one bit for TLS-enabled nodes.