From 871815369375c8e526ba10f3141df4d74c7b305f Mon Sep 17 00:00:00 2001 From: Sam Holmes Date: Thu, 2 May 2024 13:29:09 -0700 Subject: [PATCH] Fix spelling mistake --- src/common/utxobased/engine/UtxoEngineState.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/utxobased/engine/UtxoEngineState.ts b/src/common/utxobased/engine/UtxoEngineState.ts index 400414d7..f0ef1046 100644 --- a/src/common/utxobased/engine/UtxoEngineState.ts +++ b/src/common/utxobased/engine/UtxoEngineState.ts @@ -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)