wallet/http: fix signing.

This commit is contained in:
Christopher Jeffrey 2017-08-03 19:28:33 -07:00
parent f701af0b74
commit 2084e26d0d
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -462,6 +462,7 @@ HTTPServer.prototype.initRouter = function initRouter() {
enforce(raw, 'TX is required.');
const tx = MTX.fromRaw(raw);
tx.view = await req.wallet.getCoinView(tx);
await req.wallet.sign(tx, passphrase);