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

app: add teku builder proposer test #962

Merged
merged 1 commit into from
Aug 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions app/simnet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,20 @@ func TestSimnetNoNetwork_WithBuilderRegistrationTekuVC(t *testing.T) {
testSimnet(t, args)
}

func TestSimnetNoNetwork_WithBuilderProposerTekuVC(t *testing.T) {
if !*integration {
t.Skip("Skipping Teku integration test")
}

args := newSimnetArgs(t)
args.BuilderAPI = true
for i := 0; i < args.N; i++ {
args = startTeku(t, args, i, tekuVC)
}
args.BMockOpts = append(args.BMockOpts, beaconmock.WithNoAttesterDuties())
testSimnet(t, args)
}

func TestSimnetNoNetwork_WithAttesterMockVCs(t *testing.T) {
args := newSimnetArgs(t)
args.BMockOpts = append(args.BMockOpts, beaconmock.WithNoProposerDuties())
Expand Down Expand Up @@ -378,6 +392,11 @@ func startTeku(t *testing.T, args simnetArgs, node int, cmd tekuCmd) simnetArgs
fmt.Sprintf("--validators-proposer-config=http://%s/teku_proposer_config", args.VAPIAddrs[node]),
)
}
if args.BuilderAPI {
tekuArgs = append(tekuArgs,
"--validators-proposer-blinded-blocks-enabled=true",
)
}

// Configure docker
name := fmt.Sprint(time.Now().UnixNano())
Expand Down