aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2020-10-13 22:00:16 -0400
committerAdam Soltys <[email protected]>2020-10-13 22:00:16 -0400
commitf14ebcbafef93f909c121bfa491bc1ade4b174d7 (patch)
tree1528003fddf105ce356de9aef80ca10094694ece
parent0d64adca4c2f9296bd7ab8f75a89b9da3f07e654 (diff)
downloadcoinos-server-f14ebcbafef93f909c121bfa491bc1ade4b174d7.tar.gz
coinos-server-f14ebcbafef93f909c121bfa491bc1ade4b174d7.zip
set default address type
-rw-r--r--routes/users.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/routes/users.js b/routes/users.js
index becd8d40..71a97638 100644
--- a/routes/users.js
+++ b/routes/users.js
@@ -406,6 +406,7 @@ app.get(
"p2sh-segwit": "p2sh",
legacy: "p2pkh"
}[type];
+ if (!type) type = "p2wpkh";
let hd, i, p, n;
const mutex = new Mutex();