go-ethereum/.github
Arran Schlosberg aa183c52be
refactor: generate internal Header.encodeRLP() for override (#86)
## Why this should be merged

This is a precursor to being able to override `types.Header` RLP
{en,de}coding. As there is already a `Header.EncodeRLP()` method we
either have to modify the generated code or rename the generated
method—this PR does the latter.

## How this works

The `rlpgen -internal_methods` flag changes the generated methods from
`EncodeRLP()` and `DecodeRLP()` to `encodeRLP()` and `decodeRLP()`,
respectively. A new CI job checks that generated code is up to date. We
can then implement our own `Header.EncodeRLP()` that either overrides or
falls back on the original.

It appears that `core/gen_genesis.go` was out of date but only because
of formatting.

## How this was tested

I deliberately excluded the change to `core/types/gen_header_rlp.go` to
confirm that the new workflow
[detects](https://github.com/ava-labs/libevm/actions/runs/12259667481/job/34202386378?pr=86#step:5:92)
the change and fails. The actual change can be inspected via the code
diff.
2024-12-11 10:20:58 +00:00
..
ISSUE_TEMPLATE .github: add CL client to issue template (#25814) 2022-09-23 10:25:16 +02:00
workflows refactor: generate internal Header.encodeRLP() for override (#86) 2024-12-11 10:20:58 +00:00
CODEOWNERS remove @gballet as a GraphQL codeowner (#27012) 2023-03-30 04:58:23 -04:00
CONTRIBUTING.md all: update links in documentation (#26882) 2023-03-14 10:23:49 -04:00
no-response.yml Change issue labels in bot configs to the new prefixed version 2018-12-14 14:50:10 +01:00
pull_request_template.md chore: PR template (#19) 2024-09-13 08:33:36 -07:00
stale.yml Change issue labels in bot configs to the new prefixed version 2018-12-14 14:50:10 +01:00