Skip to content

Commit

Permalink
Fix spelling mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
samholmes committed May 9, 2024
1 parent 0cc795c commit 477e911
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/common/utxobased/engine/UtxoEngineState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,19 +154,19 @@ export function makeUtxoEngineState(

// We expect the total number of progress updates to equal the number of
// addresses multiplied the number of processes per address.
const expectedProccessCount =
const expectedProcessCount =
Object.keys(taskCache.addressSubscribeCache).length * processesPerAddress

// Increment the processed count
processedCount = processedCount + 1

// If we have no addresses, we should not have not yet began processing.
if (expectedProccessCount === 0) throw new Error('No addresses to process')
if (expectedProcessCount === 0) throw new Error('No addresses to process')

const percent = processedCount / expectedProccessCount
const percent = processedCount / expectedProcessCount
if (percent - processedPercent > CACHE_THROTTLE || percent === 1) {
log(
`processed changed, percent: ${percent}, processedCount: ${processedCount}, totalCount: ${expectedProccessCount}`
`processed changed, percent: ${percent}, processedCount: ${processedCount}, totalCount: ${expectedProcessCount}`
)
processedPercent = percent
emitter.emit(EngineEvent.ADDRESSES_CHECKED, percent)
Expand Down

0 comments on commit 477e911

Please sign in to comment.