File tree Expand file tree Collapse file tree 4 files changed +9
-6
lines changed Expand file tree Collapse file tree 4 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -1448,7 +1448,8 @@ mod test {
1448
1448
1449
1449
use super :: { StacksMessageCodecExtensions , * } ;
1450
1450
1451
- #[ test]
1451
+ // This test is disabled because the last signer slot can't be introduced until after Nakamoto
1452
+ // #[test]
1452
1453
fn signer_slots_count_is_sane ( ) {
1453
1454
let slot_identifiers_len = MessageSlotID :: ALL . len ( ) ;
1454
1455
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 = 14 ;
66
+ pub const SIGNER_SLOTS_PER_USER : u32 = 13 ;
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 , SIGNER_SLOTS_PER_USER } ;
741
+ use stacks_common:: consts:: CHAIN_ID_TESTNET ;
742
742
use wsts:: curve:: scalar:: Scalar ;
743
743
744
744
use super :: * ;
@@ -1121,9 +1121,13 @@ 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
1124
1127
signer_slots
1125
1128
.into_iter()
1126
1129
.for_each(|(_address, slots)| assert_eq!(slots, SIGNER_SLOTS_PER_USER as u128));
1130
+ */
1127
1131
}
1128
1132
1129
1133
#[ test]
Original file line number Diff line number Diff line change @@ -906,9 +906,7 @@ 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
- 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}" )
909
+ format ! ( "SELECT index_block_hash FROM staging_blocks WHERE height >= {arg4} AND height < {arg5} ORDER BY height ASC, index_block_hash ASC" )
912
910
}
913
911
Some ( "last" ) => format ! (
914
912
"SELECT index_block_hash FROM staging_blocks ORDER BY height DESC LIMIT {}" ,
You can’t perform that action at this time.
0 commit comments