diff --git a/package.json b/package.json index 6441ad0..c32756d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@magiceden-oss/runestone-lib", - "version": "1.0.1", + "version": "1.0.2", "description": "", "main": "./dist/index.js", "types": "./dist/index.d.ts", diff --git a/src/indexer/index.ts b/src/indexer/index.ts index 507b783..01a1e4e 100644 --- a/src/indexer/index.ts +++ b/src/indexer/index.ts @@ -90,7 +90,7 @@ export class RunestoneIndexer { } // process blocks that are reorgs - for (const blockhash of reorgBlockhashesToIndex) { + for (const blockhash of reorgBlockhashesToIndex.toReversed()) { const blockResult = await this._rpc.getblock({ blockhash, verbosity: 2 }); if (blockResult.error !== null) { throw blockResult.error;