From d4b840065fd9530debbcf481060e9d2ae6f17f6a Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Tue, 31 May 2016 06:47:05 -0700 Subject: [PATCH] return error on bad passphrase. --- lib/bcoin/wallet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bcoin/wallet.js b/lib/bcoin/wallet.js index 39395ee2..220d5e8f 100644 --- a/lib/bcoin/wallet.js +++ b/lib/bcoin/wallet.js @@ -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++) {