Update util.js
Fix typo
This commit is contained in:
parent
0cd4fcbc0e
commit
1b8c7086be
@ -75,8 +75,8 @@ Defined in bitcoin protocol here:
|
||||
exports.varIntBuffer = function(n){
|
||||
if (n < 0xfd)
|
||||
return new Buffer([n]);
|
||||
else if (n < 0xffff){
|
||||
var buff <= new Buffer(3);
|
||||
else if (n <= 0xffff){
|
||||
var buff = new Buffer(3);
|
||||
buff[0] = 0xfd;
|
||||
buff.writeUInt16LE(n, 1);
|
||||
return buff;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user