Skip to content

Commit 6e64d0d

Browse files
committed
fix: signer slots count in staging
1 parent 0d850da commit 6e64d0d

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

stacks-common/src/libcommon.rs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,20 @@ pub mod consts {
6363

6464
/// The number of StackerDB slots each signing key needs
6565
/// to use to participate in DKG and block validation signing.
66-
pub const SIGNER_SLOTS_PER_USER: u32 = 14;
66+
pub const SIGNER_SLOTS_PER_USER: u32 = 13;
67+
}
68+
69+
/// This test asserts that the constant above doesn't change.
70+
/// This exists because the constant above is used by Epoch 2.5 instantiation code.
71+
///
72+
/// Adding more slots will require instantiating more .signers contracts through either
73+
/// consensus changes (i.e., a new epoch) or through non-consensus-critical contract
74+
/// deployments.
75+
#[test]
76+
fn signer_slots_count_2_5() {
77+
assert_eq!(
78+
consts::SIGNER_SLOTS_PER_USER,
79+
13,
80+
"The .signers-x-y contracts in Epoch 2.5 were instantiated with 13 slots"
81+
);
6782
}

0 commit comments

Comments
 (0)