0

I'm trying to understand how the ethereum test related geth golang code work.

I'm stuck at how the test json files are processed.

https://github.com/ethereum/go-ethereum/blob/master/tests/block_test_util.go#L69

//go:generate gencodec -type btHeader -field-override btHeaderMarshaling -out gen_btheader.go
...

Q: How do I use this gencodec thing?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.