File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
testnet/stacks-node/src/tests/signer Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -964,22 +964,21 @@ mod test {
964
964
let bad_private_key = StacksPrivateKey :: new ( ) ;
965
965
let bad_public_key = StacksPublicKey :: from_private ( & bad_private_key) ;
966
966
967
- let mut mock_signature = random_mock_proposal ( ) ;
968
- mock_signature. sign ( & private_key) . unwrap ( ) ;
969
- assert ! ( !mock_signature
967
+ let mut mock_proposal = random_mock_proposal ( ) ;
968
+ assert ! ( !mock_proposal
970
969
. verify( & public_key)
971
- . expect( "Failed to verify MockSignature " ) ) ;
970
+ . expect( "Failed to verify MockProposal " ) ) ;
972
971
973
- mock_signature
972
+ mock_proposal
974
973
. sign ( & private_key)
975
- . expect ( "Failed to sign MockSignature " ) ;
974
+ . expect ( "Failed to sign MockProposal " ) ;
976
975
977
- assert ! ( mock_signature
976
+ assert ! ( mock_proposal
978
977
. verify( & public_key)
979
- . expect( "Failed to verify MockSignature " ) ) ;
980
- assert ! ( !mock_signature
978
+ . expect( "Failed to verify MockProposal " ) ) ;
979
+ assert ! ( !mock_proposal
981
980
. verify( & bad_public_key)
982
- . expect( "Failed to verify MockSignature " ) ) ;
981
+ . expect( "Failed to verify MockProposal " ) ) ;
983
982
}
984
983
985
984
#[ test]
Original file line number Diff line number Diff line change @@ -2440,6 +2440,7 @@ fn mock_sign_epoch_25() {
2440
2440
Some ( Duration :: from_secs ( 5 ) ) ,
2441
2441
|_| { } ,
2442
2442
|node_config| {
2443
+ node_config. miner . pre_nakamoto_mock_signing = true ;
2443
2444
let epochs = node_config. burnchain . epochs . as_mut ( ) . unwrap ( ) ;
2444
2445
for epoch in epochs. iter_mut ( ) {
2445
2446
if epoch. epoch_id == StacksEpochId :: Epoch25 {
You can’t perform that action at this time.
0 commit comments