File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -63,5 +63,20 @@ pub mod consts {
63
63
64
64
/// The number of StackerDB slots each signing key needs
65
65
/// 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
+ ) ;
67
82
}
You can’t perform that action at this time.
0 commit comments