Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
g11tech committed Oct 10, 2023
1 parent 69db726 commit 16b3427
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion packages/beacon-node/src/api/impl/validator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ export function getValidatorApi({
// set some sensible opts
builderSelection = builderSelection ?? routes.validator.BuilderSelection.MaxProfit;
const isBuilderEnabled =
ForkSeq[fork] < ForkSeq.bellatrix &&
ForkSeq[fork] >= ForkSeq.bellatrix &&
chain.executionBuilder !== undefined &&
builderSelection !== routes.validator.BuilderSelection.ExecutionOnly;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,7 @@ describe("api/validator - produceBlockV3", function () {
const config = createBeaconConfig(chainConfig, genesisValidatorsRoot);

beforeEach(() => {
const chainConfig = createChainForkConfig({
...defaultChainConfig,
ALTAIR_FORK_EPOCH: 0,
BELLATRIX_FORK_EPOCH: 1,
});
const genesisValidatorsRoot = Buffer.alloc(32, 0xaa);
const config = createBeaconConfig(chainConfig, genesisValidatorsRoot);

chainStub = sandbox.createStubInstance(BeaconChain) as StubbedChain;

dbStub = new StubbedBeaconDb(config);
networkStub = sinon.createStubInstance(Network);
syncStub = sinon.createStubInstance(BeaconSync);
Expand Down

0 comments on commit 16b3427

Please sign in to comment.