@atomiqlabs/chain-evm 1.0.0-dev.62 → 1.0.0-dev.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -335,6 +335,8 @@ class EVMChainEventsBrowser {
|
|
|
335
335
|
await this.provider.on("block", this.blockListener = async (blockNumber) => {
|
|
336
336
|
if (processing)
|
|
337
337
|
return;
|
|
338
|
+
if (this.unconfirmedEventQueue.length === 0)
|
|
339
|
+
return;
|
|
338
340
|
processing = true;
|
|
339
341
|
try {
|
|
340
342
|
const latestSafeBlock = await this.provider.getBlock(this.chainInterface.config.safeBlockTag);
|
package/package.json
CHANGED
|
@@ -457,6 +457,7 @@ export class EVMChainEventsBrowser implements ChainEvents<EVMSwapData> {
|
|
|
457
457
|
let processing = false;
|
|
458
458
|
if(safeBlockTag!=="latest" && safeBlockTag!=="pending") await this.provider.on("block", this.blockListener = async (blockNumber: number) => {
|
|
459
459
|
if(processing) return;
|
|
460
|
+
if(this.unconfirmedEventQueue.length===0) return;
|
|
460
461
|
processing = true;
|
|
461
462
|
try {
|
|
462
463
|
const latestSafeBlock = await this.provider.getBlock(this.chainInterface.config.safeBlockTag);
|