mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-01-12 22:43:42 +08:00
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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user