Another fix for serializing height in coinbase. and removed old code

This commit is contained in:
Matt 2014-02-18 14:31:46 -07:00
parent 3e77791509
commit 700160fdb9
1 changed files with 1 additions and 0 deletions

View File

@ -129,6 +129,7 @@ exports.serializeNumber = function(n){
}*/
//New version from TheSeven
if (n >= 1 && n <= 16) return new Buffer([0x50 + n]);
var l = 1;
var buff = new Buffer(9);
while (n > 0x7f)