From 700160fdb9a5c9b0c81caa2f5616b50f652d6b46 Mon Sep 17 00:00:00 2001 From: Matt Date: Tue, 18 Feb 2014 14:31:46 -0700 Subject: [PATCH] Another fix for serializing height in coinbase. and removed old code --- lib/util.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/util.js b/lib/util.js index dee042a..a3c0df8 100644 --- a/lib/util.js +++ b/lib/util.js @@ -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)