bip151: overflow sequence number properly.

This commit is contained in:
Christopher Jeffrey 2016-07-26 01:19:57 -07:00
parent 018241fc78
commit c597d7c411
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -109,7 +109,7 @@ BIP151Stream.prototype.sequence = function sequence() {
this.seq++;
// Wrap sequence number a la openssh.
if (this.seq === 0xffffffff)
if (this.seq === 0x100000000)
this.seq = 0;
// State of the ciphers is