mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-24 08:49:29 +00:00
Merge 36d136736f into 4daaaadfc4
This commit is contained in:
commit
83a373fd9d
1 changed files with 3 additions and 0 deletions
|
|
@ -397,6 +397,9 @@ func (c *Client) BatchCall(b []BatchElem) error {
|
|||
//
|
||||
// Note that batch calls may not be executed atomically on the server side.
|
||||
func (c *Client) BatchCallContext(ctx context.Context, b []BatchElem) error {
|
||||
if len(b) == 0 {
|
||||
return &invalidRequestError{"empty batch"}
|
||||
}
|
||||
var (
|
||||
msgs = make([]*jsonrpcMessage, len(b))
|
||||
byID = make(map[string]int, len(b))
|
||||
|
|
|
|||
Loading…
Reference in a new issue