From c2cd98fe7ff555ef38afe982305840bca338684d Mon Sep 17 00:00:00 2001 From: Kagami Hiiragi Date: Sat, 14 Feb 2015 18:22:57 +0300 Subject: [PATCH] Add NODE_GATEWAY/NODE_MOBILE unofficial bits --- lib/structs.js | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/lib/structs.js b/lib/structs.js index 71ee642..6ce66bb 100644 --- a/lib/structs.js +++ b/lib/structs.js @@ -992,6 +992,22 @@ var ServicesBitfield = exports.ServicesBitfield = objectAssign(Bitfield(64), { * @constant {number} */ NODE_NETWORK: 63, + /** + * Bit index indicating web/mobile client with limited network + * capabilities (proposal feature). + * @memberof module:bitmessage/structs.ServicesBitfield + * @see {@link https://bitmessage.org/wiki/Mobile_Protocol_specification} + * @constant {number} + */ + NODE_MOBILE: 62, + /** + * Bit index indicating node which can work as a WebSocket gateway for + * web/mobile clients (proposal feature). + * @memberof module:bitmessage/structs.ServicesBitfield + * @see {@link https://bitmessage.org/wiki/Mobile_Protocol_specification} + * @constant {number} + */ + NODE_GATEWAY: 61, }); /** @@ -1035,6 +1051,14 @@ exports.PubkeyBitfield = objectAssign(Bitfield(32), { * @memberof module:bitmessage/structs.PubkeyBitfield */ + /** + * Bit index. + * If set, the receiving node does send acknowledgements (rather than + * dropping them). + * @memberof module:bitmessage/structs.PubkeyBitfield + * @constant {number} + */ + DOES_ACK: 31, /** * Bit index. * If set, the receiving node expects that the RIPEMD hash encoded in @@ -1044,12 +1068,4 @@ exports.PubkeyBitfield = objectAssign(Bitfield(32), { * @constant {number} */ INCLUDE_DESTINATION: 30, - /** - * Bit index. - * If set, the receiving node does send acknowledgements (rather than - * dropping them). - * @memberof module:bitmessage/structs.PubkeyBitfield - * @constant {number} - */ - DOES_ACK: 31, });