We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38ae702 commit 41c0369Copy full SHA for 41c0369
stacks-signer/src/v0/signer.rs
@@ -563,7 +563,16 @@ impl Signer {
563
.signer_db
564
.block_lookup(self.reward_cycle, &signer_signature_hash)
565
{
566
- Ok(Some(block_info)) => block_info,
+ Ok(Some(block_info)) => {
567
+ if block_info.state == BlockState::GloballyRejected
568
+ || block_info.state == BlockState::GloballyAccepted
569
+ {
570
+ debug!("{self}: Received block validation for a block that is already marked as {}. Ignoring...", block_info.state);
571
+ return None;
572
+ } else {
573
+ block_info
574
+ }
575
576
Ok(None) => {
577
// We have not seen this block before. Why are we getting a response for it?
578
debug!("{self}: Received a block validate response for a block we have not seen before. Ignoring...");
0 commit comments