Skip to content

Commit

Permalink
Reverse blockhash to index in reorg (#60)
Browse files Browse the repository at this point in the history
* Reverse blockhash to index in reorg

* Use inplace reverse
  • Loading branch information
me-rob committed Apr 25, 2024
1 parent c674d59 commit 85a809f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/indexer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export class RunestoneIndexer {
blockhash = (await this._rpc.getblockhash({ height: blockheight })).result;
storageBlockHash = await this._storage.getBlockhash(blockheight);
}
reorgBlockhashesToIndex.reverse();

// process blocks that are reorgs
for (const blockhash of reorgBlockhashesToIndex) {
Expand Down

0 comments on commit 85a809f

Please sign in to comment.