bip151: overflow sequence number properly.
This commit is contained in:
parent
018241fc78
commit
c597d7c411
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user