diff --git a/app/lib/dal/indexDAL/leveldb/LevelDBBlockchain.ts b/app/lib/dal/indexDAL/leveldb/LevelDBBlockchain.ts index 03a9dc5e6b4e53e20e4ebdb42326d32fccd0e7fa..e0101e8bbc79ee670eb043e51493fb21f6986c2c 100644 --- a/app/lib/dal/indexDAL/leveldb/LevelDBBlockchain.ts +++ b/app/lib/dal/indexDAL/leveldb/LevelDBBlockchain.ts @@ -268,7 +268,7 @@ export class LevelDBBlockchain extends LevelDBTable<DBBlock> block.fork = false; // We remove the eventual fork const forkKey = LevelDBBlockchain.trimForkKey(block.number, block.hash); - if (this.forks.getOrNull(forkKey)) { + if (await this.forks.getOrNull(forkKey)) { await this.forks.del(forkKey); } // We return the saved block