Skip to content

Commit 4b490d0

Browse files
committed
Add incoming signers test
Signed-off-by: Jacinta Ferrant <[email protected]>
1 parent c7d4431 commit 4b490d0

File tree

3 files changed

+415
-1
lines changed

3 files changed

+415
-1
lines changed

.github/workflows/bitcoin-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ jobs:
136136
- tests::signer::v0::block_proposal_max_age_rejections
137137
- tests::signer::v0::global_acceptance_depends_on_block_announcement
138138
- tests::signer::v0::no_reorg_due_to_successive_block_validation_ok
139+
- tests::signer::v0::incoming_signers_ignore_block_proposals
139140
- tests::nakamoto_integrations::burn_ops_integration_test
140141
- tests::nakamoto_integrations::check_block_heights
141142
- tests::nakamoto_integrations::clarity_burn_state

stacks-signer/src/runloop.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ pub struct StateInfo {
4646
pub runloop_state: State,
4747
/// the current reward cycle info
4848
pub reward_cycle_info: Option<RewardCycleInfo>,
49+
/// The current running signers reward cycles
50+
pub running_signers: Vec<u64>,
4951
}
5052

5153
/// The signer result that can be sent across threads
@@ -467,6 +469,11 @@ impl<Signer: SignerTrait<T>, T: StacksMessageCodec + Clone + Send + Debug>
467469
if let Err(e) = res.send(vec![StateInfo {
468470
runloop_state: self.state,
469471
reward_cycle_info: self.current_reward_cycle_info,
472+
running_signers: self
473+
.stacks_signers
474+
.values()
475+
.map(|s| s.reward_cycle())
476+
.collect(),
470477
}
471478
.into()])
472479
{

0 commit comments

Comments
 (0)