chore: delete commented code

We decided that since the signerdb is in the filesystem, we do not need
to garbage collect it.
This commit is contained in:
Brice Dobry
2024-03-13 16:03:41 -04:00
parent b04c240476
commit 49eb61a705

View File

@@ -1029,13 +1029,6 @@ impl Signer {
return;
};
// WIP: try not deleting a block from signerDB until we have a better garbage collection strategy.
// This causes issues when we have to reprocess a block and we have already deleted it from the signerDB
// // TODO: proper garbage collection...This is currently our only cleanup of blocks
// self.signer_db
// .remove_block(&block_vote.signer_signature_hash)
// .expect(&format!("{self}: Failed to remove block from to signer DB"));
let block_submission = if block_vote.rejected {
// We signed a rejection message. Return a rejection message
BlockResponse::rejected(block_vote.signer_signature_hash, signature.clone())