Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
g11tech committed Jan 7, 2024
1 parent 0d13572 commit 24925f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/validator/src/services/validatorStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ export class ValidatorStore {
async addSigner(signer: Signer, valProposerConfig?: ValidatorProposerConfig): Promise<void> {
const pubkey = getSignerPubkeyHex(signer);
const proposerConfig = (valProposerConfig?.proposerConfig ?? {})[pubkey];
const builderBoostFactor = proposerConfig.builder?.boostFactor;
const builderBoostFactor = proposerConfig?.builder?.boostFactor;
if (builderBoostFactor !== undefined && builderBoostFactor > MAX_BUILDER_BOOST_FACTOR) {
throw Error(`Invalid builderBoostFactor=${builderBoostFactor} > MAX_BUILDER_BOOST_FACTOR for pubkey=${pubkey}`);
}
Expand Down

0 comments on commit 24925f2

Please sign in to comment.