From f5a0b9e28485d651cc08ebe58ffd2fb9697e306b Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 2 Mar 2016 03:46:21 -0800 Subject: [PATCH] fix orphan parsing. --- lib/bcoin/txdb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bcoin/txdb.js b/lib/bcoin/txdb.js index ee5082c5..8f75fa4c 100644 --- a/lib/bcoin/txdb.js +++ b/lib/bcoin/txdb.js @@ -316,7 +316,7 @@ TXPool.prototype._add = function add(tx, callback, force) { some = false; try { - orphans = JSON.parse(new Buffer(orphans, 'ascii')); + orphans = JSON.parse(orphans.toString('ascii')); } catch (e) { return done(e); }