Skip to content

Commit 4f3fc48

Browse files
committed
fix: prevent registering signers if registration round is closed
1 parent dd886ad commit 4f3fc48

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

mithril-test-lab/mithril-end-to-end/src/stress_test/aggregator_helpers.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@ pub async fn bootstrap_aggregator(
6060

6161
restart_aggregator_and_move_one_epoch_forward(&mut aggregator, current_epoch, args).await?;
6262

63+
fake_signer::try_register_signer_until_registration_round_is_open(
64+
&aggregator,
65+
&signers_fixture.signers()[0],
66+
*current_epoch + 1,
67+
Duration::from_secs(60),
68+
)
69+
.await?;
70+
6371
info!(">> Send the Signer Key Registrations payloads for the genesis signers");
6472
let errors = fake_signer::register_signers_to_aggregator(
6573
&aggregator,
@@ -69,6 +77,14 @@ pub async fn bootstrap_aggregator(
6977
.await?;
7078
assert_eq!(0, errors);
7179

80+
fake_signer::try_register_signer_until_registration_round_is_open(
81+
&aggregator,
82+
&signers_fixture.signers()[0],
83+
*current_epoch + 1,
84+
Duration::from_secs(60),
85+
)
86+
.await?;
87+
7288
restart_aggregator_and_move_one_epoch_forward(&mut aggregator, current_epoch, args).await?;
7389

7490
info!(">> Send the Signer Key Registrations payloads for next genesis signers");

0 commit comments

Comments
 (0)