From f14ebcbafef93f909c121bfa491bc1ade4b174d7 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 13 Oct 2020 22:00:16 -0400 Subject: set default address type --- routes/users.js | 1 + 1 file changed, 1 insertion(+) 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(); -- cgit v1.2.3