Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: go-ethereum fails to parse block #462

Open
DanielSolomon opened this issue Jul 31, 2023 · 0 comments
Open

[Bug]: go-ethereum fails to parse block #462

DanielSolomon opened this issue Jul 31, 2023 · 0 comments

Comments

@DanielSolomon
Copy link

Summary of Bug

Parsing blocks using go-ethereum client fails due to invalid transaction v, r, s values error.

Version

Using go-ethereum v1.2.0 .

Steps to Reproduce

A short Golang program to reproduce the issue:

package main

import (
	"context"
	"fmt"
	"math/big"

	"github.com/ethereum/go-ethereum/ethclient"
)

func main() {
	ctx := context.Background()
	blockNumber := big.NewInt(9966250)

	client, err := ethclient.Dial("https://mainnet.era.zksync.io/")
	if err != nil {
		fmt.Printf("Error dialing: %v\n", err)
		return
	}

	block, err := client.BlockByNumber(ctx, blockNumber)
	if err != nil {
		fmt.Printf("Error getting block: %v\n", err)
		return
	}

	fmt.Printf("Got block with %d transactions.\n", len(block.Transactions()))
}
  • Running go run main.go, outputs: Error getting block: invalid transaction v, r, s values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant