call checkTaddress() for each given taddress

This commit is contained in:
Larry Ruane 2021-01-15 14:40:01 -07:00 committed by Larry Ruane
parent 824cb8dc8e
commit 17c47cfebe
1 changed files with 5 additions and 0 deletions

View File

@ -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,