mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 02:40:45 +00:00
Enable RPC Endpoint.
This commit is contained in:
parent
72138a0bd2
commit
d3963c816b
1 changed files with 2 additions and 2 deletions
|
|
@ -190,14 +190,14 @@ func (s *Server) serveRequest(codec ServerCodec, singleShot bool, options CodecO
|
||||||
if singleShot {
|
if singleShot {
|
||||||
if batch {
|
if batch {
|
||||||
for _, req := range reqs {
|
for _, req := range reqs {
|
||||||
if req.callb != nil && req.callb.method.Name == "SendTransaction" {
|
if req.callb != nil && req.callb.method.Name == "EnabledSendTransaction" {
|
||||||
codec.Write(codec.CreateErrorResponse(&req.id, &invalidRequestError{message: "Only support send transaction with ipc"}))
|
codec.Write(codec.CreateErrorResponse(&req.id, &invalidRequestError{message: "Only support send transaction with ipc"}))
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
s.execBatch(ctx, codec, reqs)
|
s.execBatch(ctx, codec, reqs)
|
||||||
} else {
|
} else {
|
||||||
if reqs[0].callb != nil && reqs[0].callb.method.Name == "SendTransaction" {
|
if reqs[0].callb != nil && reqs[0].callb.method.Name == "EnabledSendTransaction" {
|
||||||
codec.Write(codec.CreateErrorResponse(&reqs[0].id, &invalidRequestError{message: "Only support send transaction with ipc"}))
|
codec.Write(codec.CreateErrorResponse(&reqs[0].id, &invalidRequestError{message: "Only support send transaction with ipc"}))
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue