diff --git a/config/validator/service/BUILD.bazel b/config/validator/service/BUILD.bazel index 198de3a1a1a1..f2ce86814244 100644 --- a/config/validator/service/BUILD.bazel +++ b/config/validator/service/BUILD.bazel @@ -13,6 +13,7 @@ go_library( "@com_github_ethereum_go_ethereum//common:go_default_library", "@com_github_ethereum_go_ethereum//common/hexutil:go_default_library", "@com_github_pkg_errors//:go_default_library", + "@org_golang_google_protobuf//types/known/wrapperspb:go_default_library", ], ) diff --git a/validator/client/BUILD.bazel b/validator/client/BUILD.bazel index 268d0afd603c..26afc0c46478 100644 --- a/validator/client/BUILD.bazel +++ b/validator/client/BUILD.bazel @@ -93,6 +93,7 @@ go_library( "@org_golang_google_grpc//status:go_default_library", "@org_golang_google_protobuf//proto:go_default_library", "@org_golang_google_protobuf//types/known/emptypb:go_default_library", + "@org_golang_google_protobuf//types/known/wrapperspb:go_default_library", ], ) @@ -176,5 +177,6 @@ go_test( "@org_golang_google_grpc//metadata:go_default_library", "@org_golang_google_grpc//status:go_default_library", "@org_golang_google_protobuf//types/known/emptypb:go_default_library", + "@org_golang_google_protobuf//types/known/wrapperspb:go_default_library", ], ) diff --git a/validator/client/propose_test.go b/validator/client/propose_test.go index e162f835d7a6..b8e27d969887 100644 --- a/validator/client/propose_test.go +++ b/validator/client/propose_test.go @@ -1064,6 +1064,28 @@ func Test_findBuilderBoost(t *testing.T) { Value: 123, }, }, + { + name: "Proposer settings with builder settings and specific propose config but wrong pubkey", + args: args{ + proposerSettings: &validatorserviceconfig.ProposerSettings{ + ProposeConfig: func() map[[fieldparams.BLSPubkeyLength]byte]*validatorserviceconfig.ProposerOption { + config := make(map[[fieldparams.BLSPubkeyLength]byte]*validatorserviceconfig.ProposerOption) + bb := uint64(123) + config[[fieldparams.BLSPubkeyLength]byte{'z'}] = &validatorserviceconfig.ProposerOption{ + FeeRecipientConfig: &validatorserviceconfig.FeeRecipientConfig{ + FeeRecipient: common.HexToAddress("a"), + }, + BuilderConfig: &validatorserviceconfig.BuilderConfig{ + Enabled: true, + BuilderBoostFactor: &bb, + }, + } + return config + }(), + }, + }, + want: nil, + }, { name: "Proposer settings with builder settings and default config", args: args{