return error on bad passphrase.

This commit is contained in:
Christopher Jeffrey 2016-05-31 06:47:05 -07:00
parent 59755841f9
commit d4b840065f
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -1009,7 +1009,7 @@ Wallet.prototype.sign = function sign(tx, options, callback) {
try {
master = self.master.toKey(options.passphrase);
} catch (e) {
return callback(null, 0);
return callback(e);
}
for (i = 0; i < addresses.length; i++) {