Skip to content

Commit

Permalink
feat: add round to approved-aggregate-public-key event
Browse files Browse the repository at this point in the history
  • Loading branch information
obycode committed Feb 21, 2024
1 parent 712c77e commit ac80a88
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions stackslib/src/chainstate/stacks/boot/signers-voting.clar
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@
(print {
event: "approved-aggregate-public-key",
reward-cycle: reward-cycle,
round: round,
key: key,
})
true)
Expand Down
7 changes: 7 additions & 0 deletions stackslib/src/chainstate/stacks/boot/signers_voting_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ fn vote_for_aggregate_public_key_success() {
),
("key".into(), aggregate_public_key.clone()),
("reward-cycle".into(), Value::UInt(cycle_id + 1)),
("round".into(), Value::UInt(0)),
])
.expect("Failed to create tuple")
.into()
Expand Down Expand Up @@ -547,6 +548,7 @@ fn vote_for_aggregate_public_key_with_errors() {
),
("key".into(), aggregate_public_key.clone()),
("reward-cycle".into(), Value::UInt(cycle_id + 1)),
("round".into(), Value::UInt(0)),
])
.expect("Failed to create tuple")
.into()
Expand Down Expand Up @@ -777,6 +779,7 @@ fn vote_for_aggregate_public_key_out_of_window() {
),
("key".into(), aggregate_public_key.clone()),
("reward-cycle".into(), Value::UInt(cycle_id + 1)),
("round".into(), Value::UInt(0)),
])
.expect("Failed to create tuple")
.into()
Expand Down Expand Up @@ -1381,6 +1384,7 @@ fn vote_for_aggregate_public_key_two_rounds() {
),
("key".into(), aggregate_public_key_1.clone()),
("reward-cycle".into(), Value::UInt(cycle_id + 1)),
("round".into(), Value::UInt(1)),
])
.expect("Failed to create tuple")
.into()
Expand Down Expand Up @@ -1588,6 +1592,7 @@ fn vote_for_aggregate_public_key_two_rounds() {
),
("key".into(), aggregate_public_key_1.clone()),
("reward-cycle".into(), Value::UInt(cycle_id + 2)),
("round".into(), Value::UInt(1)),
])
.expect("Failed to create tuple")
.into()
Expand Down Expand Up @@ -1816,6 +1821,7 @@ fn vote_for_aggregate_public_key_early() {
),
("key".into(), aggregate_public_key.clone()),
("reward-cycle".into(), Value::UInt(cycle_id + 2)),
("round".into(), Value::UInt(0)),
])
.expect("Failed to create tuple")
.into()
Expand Down Expand Up @@ -2027,6 +2033,7 @@ fn vote_for_aggregate_public_key_mixed_rounds() {
),
("key".into(), aggregate_public_key.clone()),
("reward-cycle".into(), Value::UInt(cycle_id + 1)),
("round".into(), Value::UInt(0)),
])
.expect("Failed to create tuple")
.into()
Expand Down

0 comments on commit ac80a88

Please sign in to comment.