Another fix for serializing height in coinbase. and removed old code
This commit is contained in:
parent
3e77791509
commit
700160fdb9
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue