Skip to content

Latest commit

 

History

History
245 lines (172 loc) · 1.96 KB

EVENT_EMITTERS.md

File metadata and controls

245 lines (172 loc) · 1.96 KB

Event Emitters

Events emitters per class and possible payload properties.

neo

N/A

 

core/api

ready

null

storage:insert

{
  method: string
  result: any
}

 

core/mesh

ready

null

 

core/syncer

start

null

stop

null

query:worker:complete

{
  isSuccess: boolean
}

blockVerification:init

null

blockVerification:complete

{
  isSkipped: boolean
}

blockVerification:missingBlocks

{
  count: number
}

blockVerification:excessiveBlocks

{
  count: number
}

storeBlock:init

{
  height: number
}

storeBlock:complete

{
  isSuccess?: boolean
  isSkipped?: boolean
  height: number
}

upToDate

null

 

core/node

query:init

{
  method: string
  params: object
  id: string
}

query:complete

{
  isSuccess: boolean
  method: string
  latency?: number
  blockHeight?: number
  userAgent?: string
  error?: object
}

 

storages/memory-storage

ready

null

 

storages/mongodb-storage

ready

null

reviewIndexes:init

null

reviewIndexes:complete

{
  isSuccess: boolean
}

 

analyzers/block-meta-analyzer

start

null

stop

null

query:worker:complete

{
  isSuccess: boolean
  task: object
}

blockMetaVerification:init

null

blockMetaVerification:complete

{
  isSuccess?: boolean
  isSkipped?: boolean
}

blockMetaVerification:blockMetas:missing

{
  count: number
}

blockMetaVerification:blockMetas:legacy

{
  count: number
}

blockMetaVerification:transactionMetas:legacy

{
  metaCount: number
}

upToDate

null