From 67164790ffa9449cb36a4ba3c60a0176681374d9 Mon Sep 17 00:00:00 2001 From: Esteban Ordano Date: Fri, 6 Feb 2015 10:10:29 -0300 Subject: [PATCH] Fix inspect method so it doesn't fail on incomplete TX --- lib/transaction/transaction.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/transaction/transaction.js b/lib/transaction/transaction.js index 1d964ac..102c7b3 100644 --- a/lib/transaction/transaction.js +++ b/lib/transaction/transaction.js @@ -114,7 +114,7 @@ Transaction.prototype.serialize = function(unsafe) { } }; -Transaction.prototype.uncheckedSerialize = Transaction.prototype.toString = function() { +Transaction.prototype.uncheckedSerialize = function() { return this.toBuffer().toString('hex'); }; @@ -161,7 +161,7 @@ Transaction.prototype._hasDustOutputs = function() { }; Transaction.prototype.inspect = function() { - return ''; + return ''; }; Transaction.prototype.toBuffer = function() {