Commit fbf4ee9
committed
feat(testutil/validatormock): port propose.go (block proposal + builder reg)
Ports `propose_block` and `register` from
`charon/testutil/validatormock/propose.go`. Versioned dispatch matches the Go
switch on `eth2spec.DataVersion`; blinded path is gated on the proposal's
`execution_payload_blinded` flag (the Pluto generated client's analog of Go's
`block.Blinded`).
Phase0/Altair branches return `Error::UnsupportedVariant` until the Pluto
typed surface for them is ready; Bellatrix .. Fulu (full + blinded) are
implemented in full.
`register` ports the *intended* behaviour of Go's `Register`: it switches on
the input registration's `Version` (Go switches on the zero-value-initialized
signed registration version, which always falls through to V1 — a Go quirk
noted inline).
Tests mirror `TestProposeBlock` and `TestProposeBlindedBlock`; variants whose
random fixtures don't yet exist in `pluto-testutil::random` are `#[ignore]`d
with a TODO pointing at the missing helper.1 parent 03c48a9 commit fbf4ee9
2 files changed
Lines changed: 922 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
0 commit comments