Merge pull request #1047 from eordano/fix/inspect

Fix inspect method so it doesn't fail on incomplete TX
This commit is contained in:
Yemel Jardi 2015-02-06 11:03:43 -03:00
commit 5f5be614f5
1 changed files with 2 additions and 2 deletions

View File

@ -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 '<Transaction: ' + this.toString() + '>';
return '<Transaction: ' + this.uncheckedSerialize() + '>';
};
Transaction.prototype.toBuffer = function() {