From 17c47cfebe11e36537a8ac30b660726e8176d29c Mon Sep 17 00:00:00 2001 From: Larry Ruane Date: Fri, 15 Jan 2021 14:40:01 -0700 Subject: [PATCH] call checkTaddress() for each given taddress --- frontend/service.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/service.go b/frontend/service.go index e475170..3eb3260 100644 --- a/frontend/service.go +++ b/frontend/service.go @@ -327,6 +327,11 @@ func (s *lwdStreamer) SendTransaction(ctx context.Context, rawtx *walletrpc.RawT } func getTaddressBalanceZcashdRpc(addressList []string) (*walletrpc.Balance, error) { + for _, addr := range addressList { + if err := checkTaddress(addr); err != nil { + return &walletrpc.Balance{}, err + } + } params := make([]json.RawMessage, 1) addrList := &common.ZcashdRpcRequestGetaddressbalance{ Addresses: addressList,