|
|
@ -153,6 +153,8 @@ Transaction.prototype.uncheckedSerialize = Transaction.prototype.toString = func |
|
|
|
Transaction.prototype.checkedSerialize = function(opts) { |
|
|
|
var serializationError = this.getSerializationError(opts); |
|
|
|
if (serializationError) { |
|
|
|
serializationError.message += ' Use Transaction#uncheckedSerialize if you want to skip security checks. ' + |
|
|
|
'See http://bitcore.io/guide/transaction.html#Serialization for more info.' |
|
|
|
throw serializationError; |
|
|
|
} |
|
|
|
return this.uncheckedSerialize(); |
|
|
|