Wallet name in walletinfo (#2603)

This commit is contained in:
benthecarman 2021-02-01 12:50:42 -06:00 committed by GitHub
parent 779eefb6a5
commit f849ba492f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -572,6 +572,7 @@ case class WalletRoutes(wallet: AnyHDWalletApi)(implicit
KeyManagerAppConfig.moduleName -> Obj(
"rootXpub" -> Str(wallet.keyManager.getRootXPub.toString)
),
"walletName" -> Str(walletConf.walletNameOpt.getOrElse("")),
"xpub" -> Str(accountDb.xpub.toString),
"hdPath" -> Str(accountDb.hdAccount.toString),
"height" -> Num(walletState.height),