diff --git a/lib/messages.js b/lib/messages.js index 68ea8a3..1ae678e 100644 --- a/lib/messages.js +++ b/lib/messages.js @@ -248,6 +248,12 @@ Version.prototype.fromBuffer = function(payload) { */ this.start_height = parser.readUInt32LE(); + /** + * @desc Whether the remote peer should announce relayed transactions or not, see BIP 0037 + * @type {boolean} + */ + this.relay = !!parser.readUInt8(); + console.log(this); $.checkState(parser.finished()); return this;