Skip to content

Commit 91550e1

Browse files
committed
feat: always broadcast a BlockResponse, even if globally accepted
1 parent 6e0bd5a commit 91550e1

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

stacks-signer/src/v0/signer.rs

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -538,15 +538,7 @@ impl Signer {
538538
.signer_db
539539
.block_lookup(self.reward_cycle, &signer_signature_hash)
540540
{
541-
Ok(Some(block_info)) => {
542-
if block_info.state == BlockState::GloballyRejected
543-
|| block_info.state == BlockState::GloballyAccepted
544-
{
545-
debug!("{self}: Received block validation for a block that is already marked as {}. Ignoring...", block_info.state);
546-
return None;
547-
}
548-
block_info
549-
}
541+
Ok(Some(block_info)) => block_info,
550542
Ok(None) => {
551543
// We have not seen this block before. Why are we getting a response for it?
552544
debug!("{self}: Received a block validate response for a block we have not seen before. Ignoring...");
@@ -596,15 +588,7 @@ impl Signer {
596588
.signer_db
597589
.block_lookup(self.reward_cycle, &signer_signature_hash)
598590
{
599-
Ok(Some(block_info)) => {
600-
if block_info.state == BlockState::GloballyRejected
601-
|| block_info.state == BlockState::GloballyAccepted
602-
{
603-
debug!("{self}: Received block validation for a block that is already marked as {}. Ignoring...", block_info.state);
604-
return None;
605-
}
606-
block_info
607-
}
591+
Ok(Some(block_info)) => block_info,
608592
Ok(None) => {
609593
// We have not seen this block before. Why are we getting a response for it?
610594
debug!("{self}: Received a block validate response for a block we have not seen before. Ignoring...");

0 commit comments

Comments
 (0)