File tree Expand file tree Collapse file tree 4 files changed +6
-9
lines changed Expand file tree Collapse file tree 4 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -1448,8 +1448,7 @@ mod test {
1448
1448
1449
1449
use super :: { StacksMessageCodecExtensions , * } ;
1450
1450
1451
- // This test is disabled because the last signer slot can't be introduced until after Nakamoto
1452
- // #[test]
1451
+ #[ test]
1453
1452
fn signer_slots_count_is_sane ( ) {
1454
1453
let slot_identifiers_len = MessageSlotID :: ALL . len ( ) ;
1455
1454
assert ! (
Original file line number Diff line number Diff line change @@ -63,5 +63,5 @@ 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 = 13 ;
66
+ pub const SIGNER_SLOTS_PER_USER : u32 = 14 ;
67
67
}
Original file line number Diff line number Diff line change @@ -738,7 +738,7 @@ mod tests {
738
738
} ;
739
739
use rand:: thread_rng;
740
740
use rand_core:: RngCore ;
741
- use stacks_common:: consts:: CHAIN_ID_TESTNET ;
741
+ use stacks_common:: consts:: { CHAIN_ID_TESTNET , SIGNER_SLOTS_PER_USER } ;
742
742
use wsts:: curve:: scalar:: Scalar ;
743
743
744
744
use super :: * ;
@@ -1121,13 +1121,9 @@ mod tests {
1121
1121
1122
1122
let signer_slots = mock. client . parse_signer_slots ( value) . unwrap ( ) ;
1123
1123
assert_eq ! ( signer_slots. len( ) , 5 ) ;
1124
-
1125
- /*
1126
- * This is disabled until the number of slots is again 14
1127
1124
signer_slots
1128
1125
. into_iter ( )
1129
1126
. for_each ( |( _address, slots) | assert_eq ! ( slots, SIGNER_SLOTS_PER_USER as u128 ) ) ;
1130
- */
1131
1127
}
1132
1128
1133
1129
#[ test]
Original file line number Diff line number Diff line change @@ -906,7 +906,9 @@ simulating a miner.
906
906
. parse :: < u64 > ( )
907
907
. expect ( "<start_block> not a valid u64" ) ;
908
908
let arg5 = argv[ 5 ] . parse :: < u64 > ( ) . expect ( "<end_block> not a valid u64" ) ;
909
- format ! ( "SELECT index_block_hash FROM staging_blocks WHERE height >= {arg4} AND height < {arg5} ORDER BY height ASC, index_block_hash ASC" )
909
+ let start = arg4. saturating_sub ( 1 ) ;
910
+ let blocks = arg5. saturating_sub ( arg4) ;
911
+ format ! ( "SELECT index_block_hash FROM staging_blocks ORDER BY height ASC LIMIT {start}, {blocks}" )
910
912
}
911
913
Some ( "last" ) => format ! (
912
914
"SELECT index_block_hash FROM staging_blocks ORDER BY height DESC LIMIT {}" ,
You can’t perform that action at this time.
0 commit comments