Skip to content

Commit 131faac

Browse files
igor-sirotindlipicar
authored andcommitted
chore: update SingleRequestCodec to go-ethereum upstream
1 parent 67abf49 commit 131faac

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

node/rpc/rpc.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ func (c *SingleRequestCodec) Output() string {
4242
return c.output
4343
}
4444

45-
func (c *SingleRequestCodec) encode(v interface{}) error {
45+
func (c *SingleRequestCodec) encode(v interface{}, isErrorResponse bool) error {
46+
// isErrorResponse seem to be safe to ignore.
47+
// It was added in go-ethereum to handle HTTP differently in some specific cases
48+
// https://github.com/ethereum/go-ethereum/pull/25457
49+
4650
data, err := json.Marshal(v)
4751
if err != nil {
4852
return err

0 commit comments

Comments
 (0)