From ac5978c0e1b8986220deb6537c9a72f538c34263 Mon Sep 17 00:00:00 2001 From: pbca26 Date: Sat, 21 Oct 2017 12:37:55 +0300 Subject: [PATCH] spv get keys get -> post --- routes/shepherd/electrum/keys.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/routes/shepherd/electrum/keys.js b/routes/shepherd/electrum/keys.js index d9a6db8..a18c4b3 100644 --- a/routes/shepherd/electrum/keys.js +++ b/routes/shepherd/electrum/keys.js @@ -45,13 +45,13 @@ module.exports = (shepherd) => { res.end(JSON.stringify(successObj)); }); - shepherd.get('/electrum/keys', (req, res, next) => { + shepherd.post('/electrum/keys', (req, res, next) => { let _matchingKeyPairs = 0; let _electrumKeys = {}; for (let key in shepherd.electrumServers) { const _abbr = shepherd.electrumServers[key].abbr; - const { priv, pub } = shepherd.seedToWif(req.query.seed, shepherd.findNetworkObj(_abbr), req.query.iguana); + const { priv, pub } = shepherd.seedToWif(req.body.seed, shepherd.findNetworkObj(_abbr), req.body.iguana); if (shepherd.electrumKeys[_abbr].pub === pub && shepherd.electrumKeys[_abbr].priv === priv) { @@ -59,7 +59,7 @@ module.exports = (shepherd) => { } } - if (req.query.active) { + if (req.body.active) { _electrumKeys = JSON.parse(JSON.stringify(shepherd.electrumKeys)); for (let key in _electrumKeys) {