diff --git a/app/lib/blockchain/DuniterBlockchain.ts b/app/lib/blockchain/DuniterBlockchain.ts index 81603eb1b8d90bc6167ef36c11a8aef5b6607f25..169f79f584bedd94377a6886f1b666060a170eec 100644 --- a/app/lib/blockchain/DuniterBlockchain.ts +++ b/app/lib/blockchain/DuniterBlockchain.ts @@ -690,7 +690,6 @@ export class DuniterBlockchain { block.fork = true; try { // Saves the block (DAL) - block.wrong = false; await dal.saveSideBlock(block); logger.info( "SIDE Block #%s-%s added to the blockchain in %s ms", diff --git a/app/lib/dal/fileDAL.ts b/app/lib/dal/fileDAL.ts index bfb07a09ce45f38fe9bcf473dc684fba6339eddf..abefa673b1e73642157115a80ade3c5fa737216d 100644 --- a/app/lib/dal/fileDAL.ts +++ b/app/lib/dal/fileDAL.ts @@ -1236,7 +1236,6 @@ export class FileDAL implements ServerDAO { } saveBlock(dbb: DBBlock) { - dbb.wrong = false; return this.blockDAL.saveBlock(dbb); // Since v1.8.7, saveTxsInFiles() should be call only if TX storage enabled, by the caller diff --git a/app/lib/dal/sqliteDAL/BlockDAL.ts b/app/lib/dal/sqliteDAL/BlockDAL.ts index 3f82cfe5c5c0f99c5217f2da2c296fa42b84933f..988550beea4c5167d11309ca6612c647ca4d1eaa 100644 --- a/app/lib/dal/sqliteDAL/BlockDAL.ts +++ b/app/lib/dal/sqliteDAL/BlockDAL.ts @@ -77,7 +77,7 @@ export class BlockDAL extends AbstractSQLite<DBBlock> { "transactions", ], // Booleans - ["wrong", "legacy"], + ["legacy"], // BigIntegers ["monetaryMass"], // Transient diff --git a/app/lib/db/DBBlock.ts b/app/lib/db/DBBlock.ts index 7f8eb593bbf2d442eb432fcbf57cbd58ea35ad48..39e2a5b29b4faa7bef156ecb4d352c3f09f0c0e3 100644 --- a/app/lib/db/DBBlock.ts +++ b/app/lib/db/DBBlock.ts @@ -48,7 +48,6 @@ export class DBBlock { UDTime: number; writtenOn: number; written_on: string; - wrong = false; constructor() {}