SidecarProposerExpected: Use the correct value of proposer index in the singleflight group. (#15993)

This commit is contained in:
Manu NALEPA
2025-11-06 17:18:43 +01:00
committed by GitHub
parent 92bd211e4d
commit 091e868a7b
4 changed files with 33 additions and 10 deletions

View File

@@ -58,9 +58,10 @@ func WithDenebSlot(slot primitives.Slot) DenebBlockGeneratorOption {
func GenerateTestDenebBlockWithSidecar(t *testing.T, parent [32]byte, slot primitives.Slot, nblobs int, opts ...DenebBlockGeneratorOption) (blocks.ROBlock, []blocks.ROBlob) {
g := &denebBlockGenerator{
parent: parent,
slot: slot,
nblobs: nblobs,
parent: parent,
slot: slot,
nblobs: nblobs,
proposer: 3, // Anything else than zero not to fallback to the default uin64 value.
}
for _, o := range opts {
o(g)