rpc/client: remove obsolete retry from invokeSomething()

All preview3 nodes have proper support for scoped signers in parameters.
This commit is contained in:
Roman Khimov 2020-08-11 21:21:38 +03:00
parent 9440e9acbc
commit b31e18096f

View file

@ -365,18 +365,6 @@ func (c *Client) invokeSomething(method string, p request.RawParams, signers []t
p.Values = append(p.Values, signers) p.Values = append(p.Values, signers)
} }
if err := c.performRequest(method, p, resp); err != nil { if err := c.performRequest(method, p, resp); err != nil {
// Retry with old-fashioned hashes (see neo/neo-modules#260).
if signers != nil {
var hashes = make([]util.Uint160, len(signers))
for i := range signers {
hashes[i] = signers[i].Account
}
p.Values[len(p.Values)-1] = hashes
err = c.performRequest(method, p, resp)
if err == nil {
return resp, nil
}
}
return nil, err return nil, err
} }
return resp, nil return resp, nil