Skip to content

Commit

Permalink
revert invalid check
Browse files Browse the repository at this point in the history
  • Loading branch information
acolytec3 committed Aug 13, 2024
1 parent ad688cd commit 831e1d6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/vm/src/buildBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,9 +366,7 @@ export class BlockBuilder {

let block
const cs = this.blockOpts.cliqueSigner
if (this.blockOpts.common?.consensusAlgorithm() === ConsensusAlgorithm.Clique) {
if (cs === undefined)
throw new Error('cliqueSigner required for building blocks under PoA consensus')
if (cs !== undefined) {
block = createSealedCliqueBlock(blockData, cs, this.blockOpts)
} else {
block = createBlock(blockData, blockOpts)
Expand Down

0 comments on commit 831e1d6

Please sign in to comment.