From 023aa5d6b0e5002dafecad25d1e13604480f53e5 Mon Sep 17 00:00:00 2001 From: Brannon King Date: Fri, 12 Nov 2021 16:49:24 -0500 Subject: [PATCH] [lbry] btcjson: 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