Skip to content
Snippets Groups Projects
Commit 3cef292d authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

fix(ts): DBBlock: Remove unused property 'wrong'

parent 7b4d8e0c
Branches
Tags
No related merge requests found
Pipeline #32399 passed
...@@ -690,7 +690,6 @@ export class DuniterBlockchain { ...@@ -690,7 +690,6 @@ export class DuniterBlockchain {
block.fork = true; block.fork = true;
try { try {
// Saves the block (DAL) // Saves the block (DAL)
block.wrong = false;
await dal.saveSideBlock(block); await dal.saveSideBlock(block);
logger.info( logger.info(
"SIDE Block #%s-%s added to the blockchain in %s ms", "SIDE Block #%s-%s added to the blockchain in %s ms",
......
...@@ -1236,7 +1236,6 @@ export class FileDAL implements ServerDAO { ...@@ -1236,7 +1236,6 @@ export class FileDAL implements ServerDAO {
} }
saveBlock(dbb: DBBlock) { saveBlock(dbb: DBBlock) {
dbb.wrong = false;
return this.blockDAL.saveBlock(dbb); return this.blockDAL.saveBlock(dbb);
// Since v1.8.7, saveTxsInFiles() should be call only if TX storage enabled, by the caller // Since v1.8.7, saveTxsInFiles() should be call only if TX storage enabled, by the caller
......
...@@ -77,7 +77,7 @@ export class BlockDAL extends AbstractSQLite<DBBlock> { ...@@ -77,7 +77,7 @@ export class BlockDAL extends AbstractSQLite<DBBlock> {
"transactions", "transactions",
], ],
// Booleans // Booleans
["wrong", "legacy"], ["legacy"],
// BigIntegers // BigIntegers
["monetaryMass"], ["monetaryMass"],
// Transient // Transient
......
...@@ -48,7 +48,6 @@ export class DBBlock { ...@@ -48,7 +48,6 @@ export class DBBlock {
UDTime: number; UDTime: number;
writtenOn: number; writtenOn: number;
written_on: string; written_on: string;
wrong = false;
constructor() {} constructor() {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment