rpc/client: remove obsolete retry from invokeSomething()
All preview3 nodes have proper support for scoped signers in parameters.
This commit is contained in:
parent
9440e9acbc
commit
b31e18096f
1 changed files with 0 additions and 12 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue