Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
acolytec3 committed Oct 3, 2023
1 parent 551b56f commit 8be5b4f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/client/src/rpc/modules/engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ export class Engine {
this.chain,
this.chainCache
)
if (headBlock === undefined || error) {
if (headBlock === undefined || error !== undefined) {
let response = error
if (!response) {
const validationError = `Error assembling block during init`
Expand Down
4 changes: 2 additions & 2 deletions packages/client/src/service/fullethereumservice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ export class FullEthereumService extends Service {
if (txs[0].length > 0) this.txPool.sendNewTxHashes(txs, [peer])
})

// skeleton needs to be opened before syncronizers are opened
// but after chain is opened, which skeleton's open will take care of
// skeleton needs to be opened before synchronizers are opened
// but after chain is opened, which skeleton.open() does internally
await this.skeleton?.open()
await super.open()
await this.execution.open()
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/service/skeleton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ export class Skeleton extends MetaDBManager {
async setHead(head: Block, force = true, init = false, reorgthrow = false): Promise<boolean> {
return this.runWithLock<boolean>(async () => {
if (this.started === 0) {
throw Error(`skeleton setHead called before its opened`)
throw Error(`skeleton setHead called before being opened`)
}

this.config.logger.debug(
Expand Down

0 comments on commit 8be5b4f

Please sign in to comment.