Update util.js

Fix typo
This commit is contained in:
Matthew Little 2016-12-22 18:50:31 -07:00 committed by GitHub
parent 0cd4fcbc0e
commit 1b8c7086be

View File

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