@@ -554,7 +554,7 @@ fn block_proposal_rejection() {
554
554
if signer_signature_hash == block_signer_signature_hash_1 {
555
555
found_signer_signature_hash_1 = true;
556
556
assert!(
557
- matches!(reason_code, RejectCode::SortitionViewMismatch ),
557
+ matches!(reason_code, RejectCode::InvalidBitvec ),
558
558
"Expected sortition view mismatch rejection. Got: {reason_code}"
559
559
);
560
560
} else if signer_signature_hash == block_signer_signature_hash_2 {
@@ -3478,7 +3478,7 @@ fn empty_sortition() {
3478
3478
..
3479
3479
})) = latest_msg
3480
3480
{
3481
- assert!(matches!(reason_code, RejectCode::SortitionViewMismatch ));
3481
+ assert!(matches!(reason_code, RejectCode::InvalidMiner ));
3482
3482
assert_eq!(metadata.server_version, VERSION_STRING.to_string());
3483
3483
found_rejections.push(*slot_id);
3484
3484
} else {
@@ -11679,10 +11679,7 @@ fn reorg_attempts_activity_timeout_exceeded() {
11679
11679
match message {
11680
11680
SignerMessage::BlockResponse(BlockResponse::Rejected(rejection)) => {
11681
11681
if rejection.signer_signature_hash == hash {
11682
- assert_eq!(
11683
- rejection.reason_code,
11684
- RejectCode::SortitionViewMismatch
11685
- );
11682
+ assert_eq!(rejection.reason_code, RejectCode::InvalidMiner);
11686
11683
Some(rejection)
11687
11684
} else {
11688
11685
None
@@ -12411,7 +12408,7 @@ fn block_proposal_timeout() {
12411
12408
if rejection.signer_signature_hash
12412
12409
== block_proposal_n.block.header.signer_signature_hash()
12413
12410
{
12414
- assert_eq!(rejection.reason_code, RejectCode::SortitionViewMismatch );
12411
+ assert_eq!(rejection.reason_code, RejectCode::InvalidMiner );
12415
12412
Some(rejection)
12416
12413
} else {
12417
12414
None
0 commit comments