Skip to content

Commit 85a809f

Browse files
authored
Reverse blockhash to index in reorg (#60)
* Reverse blockhash to index in reorg * Use inplace reverse
1 parent c674d59 commit 85a809f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@magiceden-oss/runestone-lib",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",

src/indexer/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ export class RunestoneIndexer {
8888
blockhash = (await this._rpc.getblockhash({ height: blockheight })).result;
8989
storageBlockHash = await this._storage.getBlockhash(blockheight);
9090
}
91+
reorgBlockhashesToIndex.reverse();
9192

9293
// process blocks that are reorgs
9394
for (const blockhash of reorgBlockhashesToIndex) {

0 commit comments

Comments
 (0)