complete Version message

This commit is contained in:
Manuel Araoz 2015-02-06 12:44:23 -03:00
parent 24b02ccaa6
commit 2489750913

View File

@ -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;