From 42913baea2ffa44b35903067147bab1cc05cd13f Mon Sep 17 00:00:00 2001 From: Benoit Lavenier <benoit.lavenier@e-is.pro> Date: Wed, 10 May 2023 19:17:03 +0200 Subject: [PATCH] [fix] Delete or update 'indexOfComplexeConditionForPubkeys' when removing a block --- app/lib/dal/indexDAL/leveldb/LevelDBSindex.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/lib/dal/indexDAL/leveldb/LevelDBSindex.ts b/app/lib/dal/indexDAL/leveldb/LevelDBSindex.ts index 9b3ea4bcf..439713bbc 100644 --- a/app/lib/dal/indexDAL/leveldb/LevelDBSindex.ts +++ b/app/lib/dal/indexDAL/leveldb/LevelDBSindex.ts @@ -129,9 +129,9 @@ export class LevelDBSindex extends LevelDBTable<SindexEntry> pos: number; }[] > { - const forConditions = await this.getForConditions(`SIG(${pubkey})`); - const forPubkeys = await this.getForComplexeConditionPubkey(pubkey); - const reduced = Indexer.DUP_HELPERS.reduceBy(forConditions.concat(forPubkeys), [ + const forSimpleConditions = await this.getForConditions(`SIG(${pubkey})`); + const forComplexConditions = await this.getForComplexeConditionPubkey(pubkey); + const reduced = Indexer.DUP_HELPERS.reduceBy(forSimpleConditions.concat(forComplexConditions), [ "identifier", "pos", ]); -- GitLab