File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
testnet/stacks-node/src/tests/signer Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -10868,14 +10868,15 @@ fn mark_miner_as_invalid_if_reorg_is_rejected() {
10868
10868
}
10869
10869
SignerMessage :: BlockResponse ( BlockResponse :: Rejected ( BlockRejection {
10870
10870
signer_signature_hash,
10871
- reason_code ,
10871
+ response_data ,
10872
10872
..
10873
10873
} ) ) => {
10874
10874
if signer_signature_hash == block_n1_prime. signer_signature_hash {
10875
10875
assert_eq ! (
10876
- reason_code,
10877
- RejectCode :: ReorgNotAllowed ,
10878
- "Block N+1' was rejected for the wrong reason: {reason_code}"
10876
+ response_data. reject_reason,
10877
+ RejectReason :: ReorgNotAllowed ,
10878
+ "Block N+1' was rejected for the wrong reason: {}" ,
10879
+ response_data. reject_reason
10879
10880
) ;
10880
10881
rejections += 1 ;
10881
10882
}
@@ -10934,12 +10935,12 @@ fn mark_miner_as_invalid_if_reorg_is_rejected() {
10934
10935
match message {
10935
10936
SignerMessage :: BlockResponse ( BlockResponse :: Rejected ( BlockRejection {
10936
10937
signer_signature_hash,
10937
- reason_code ,
10938
+ response_data ,
10938
10939
..
10939
10940
} ) ) => {
10940
10941
if signer_signature_hash == block_n1_prime. signer_signature_hash
10941
- && ( reason_code == RejectCode :: InvalidMiner
10942
- || reason_code == RejectCode :: ReorgNotAllowed )
10942
+ && ( response_data . reject_reason == RejectReason :: InvalidMiner
10943
+ || response_data . reject_reason == RejectReason :: ReorgNotAllowed )
10943
10944
{
10944
10945
rejections += 1 ;
10945
10946
}
You can’t perform that action at this time.
0 commit comments