Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add reorg_attempts_activity_timeout_ms config option and tenure_activity table to track miner activity #5755

Open
wants to merge 14 commits into
base: develop
Choose a base branch
from
Open
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions testnet/stacks-node/src/tests/signer/v0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11640,19 +11640,14 @@ fn reorg_attempts_activity_timeout_exceeded() {
.expect("FAIL: Timed out waiting for block proposal rejections of N'");

info!("------------------------- Ensure chain halts -------------------------");
// The signer should automatically attempt to mine a new block once the signers eventually tell it to abandon the previous block
jferrant marked this conversation as resolved.
Show resolved Hide resolved
// It will reject it though because the block proposal timeout is exceeded and its first block proposal arrived AFTER the reorg activity timeout
jferrant marked this conversation as resolved.
Show resolved Hide resolved
assert!(wait_for(30, || {
jferrant marked this conversation as resolved.
Show resolved Hide resolved
let chain_info = get_chain_info(&signer_test.running_nodes.conf);
Ok(chain_info.stacks_tip_height > chain_before.stacks_tip_height)
assert_eq!(chain_info.stacks_tip_height, chain_before.stacks_tip_height);
Ok(false)
})
.is_err());

// The signer should automatically attempt to mine a new block once the signers eventually tell it to abandon the previous block
// It will accept reject it though because the block proposal timeout is exceeded and its first block proposal arrived AFTER the reorg activity timeout
let chain_after = get_chain_info(&signer_test.running_nodes.conf);
assert_eq!(
chain_after.stacks_tip_height,
block_proposal_n.block.header.chain_length
);
signer_test.shutdown();
}

Expand Down
Loading