From 30f4bd6582653934c1b3ec9d371a793693470a86 Mon Sep 17 00:00:00 2001 From: Brannon King Date: Fri, 12 Nov 2021 16:49:24 -0500 Subject: [PATCH] [lbry] rpc: added optional address type for getnewaddress --- btcjson/walletsvrcmds.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/btcjson/walletsvrcmds.go b/btcjson/walletsvrcmds.go index e4d676ff..8569c1d5 100644 --- a/btcjson/walletsvrcmds.go +++ b/btcjson/walletsvrcmds.go @@ -242,7 +242,8 @@ func NewGetBalancesCmd() *GetBalancesCmd { // GetNewAddressCmd defines the getnewaddress JSON-RPC command. type GetNewAddressCmd struct { - Account *string + Account *string + AddressType *string // must be one of legacy / p2pkh or p2sh-p2wkh / p2sh-segwit, or p2wkh / bech32 } // NewGetNewAddressCmd returns a new instance which can be used to issue a