Skip to content

Commit c7c7fd6

Browse files
Merge pull request #6676 from Jiloc/chore/update-consensus-tests-epochs
chore: update consensus tests epochs
2 parents 1d2cb2e + df7b4a9 commit c7c7fd6

6 files changed

+19
-335
lines changed

stackslib/src/chainstate/tests/consensus.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ use crate::net::tests::NakamotoBootPlan;
5555
/// The epochs to test for consensus are the current and upcoming epochs.
5656
/// This constant must be changed when new epochs are introduced.
5757
/// Note that contract deploys MUST be done in each epoch >= 2.0.
58-
const EPOCHS_TO_TEST: &[StacksEpochId] = &[StacksEpochId::Epoch32, StacksEpochId::Epoch33];
58+
const EPOCHS_TO_TEST: &[StacksEpochId] = &[StacksEpochId::Epoch33];
5959

6060
pub const SK_1: &str = "a1289f6438855da7decf9b61b852c882c398cff1446b2a0f823538aa2ebef92e01";
6161
pub const SK_2: &str = "4ce9a8f7539ea93753a36405b16e8b57e15a552430410709c2b6d65dca5c02e201";
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
---
22
source: stackslib/src/chainstate/tests/consensus.rs
3-
assertion_line: 893
43
expression: result
5-
snapshot_kind: text
64
---
75
[
86
Success(ExpectedBlockOutput(

stackslib/src/chainstate/tests/snapshots/blockstack_lib__chainstate__tests__consensus__append_empty_blocks.snap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@ expression: result
44
---
55
[
66
Failure("Invalid Nakamoto block: failed static transaction checks"),
7-
Failure("Invalid Nakamoto block: failed static transaction checks"),
87
]

stackslib/src/chainstate/tests/snapshots/blockstack_lib__chainstate__tests__consensus__append_stx_transfers_success.snap

Lines changed: 1 addition & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -4,65 +4,7 @@ expression: result
44
---
55
[
66
Success(ExpectedBlockOutput(
7-
marf_hash: "095b12065b5aa5f0cc29dc004b16507be9fb7964a1d656e891a232931db1810a",
8-
evaluated_epoch: Epoch32,
9-
transactions: [
10-
ExpectedTransactionOutput(
11-
tx: "TokenTransfer(from: ST000000000000000000002AMW42H, amount: 1000, memo: 00000000000000000000000000000000000000000000000000000000000000000000)",
12-
vm_error: "None [NON-CONSENSUS BREAKING]",
13-
return_type: Response(ResponseData(
14-
committed: true,
15-
data: Bool(true),
16-
)),
17-
cost: ExecutionCost(
18-
write_length: 0,
19-
write_count: 0,
20-
read_length: 0,
21-
read_count: 0,
22-
runtime: 0,
23-
),
24-
),
25-
ExpectedTransactionOutput(
26-
tx: "TokenTransfer(from: ST000000000000000000002AMW42H, amount: 1000, memo: 00000000000000000000000000000000000000000000000000000000000000000000)",
27-
vm_error: "None [NON-CONSENSUS BREAKING]",
28-
return_type: Response(ResponseData(
29-
committed: true,
30-
data: Bool(true),
31-
)),
32-
cost: ExecutionCost(
33-
write_length: 0,
34-
write_count: 0,
35-
read_length: 0,
36-
read_count: 0,
37-
runtime: 0,
38-
),
39-
),
40-
ExpectedTransactionOutput(
41-
tx: "TokenTransfer(from: ST000000000000000000002AMW42H, amount: 1000, memo: 00000000000000000000000000000000000000000000000000000000000000000000)",
42-
vm_error: "None [NON-CONSENSUS BREAKING]",
43-
return_type: Response(ResponseData(
44-
committed: true,
45-
data: Bool(true),
46-
)),
47-
cost: ExecutionCost(
48-
write_length: 0,
49-
write_count: 0,
50-
read_length: 0,
51-
read_count: 0,
52-
runtime: 0,
53-
),
54-
),
55-
],
56-
total_block_cost: ExecutionCost(
57-
write_length: 0,
58-
write_count: 0,
59-
read_length: 0,
60-
read_count: 0,
61-
runtime: 0,
62-
),
63-
)),
64-
Success(ExpectedBlockOutput(
65-
marf_hash: "180457415b54799e13905b076af575c96c77614e13e26f8211aa32e7cb1e893e",
7+
marf_hash: "c56a8191ab95c754a08477d6fbe025a07902dc168afaa75f23f87585a885fe0d",
668
evaluated_epoch: Epoch33,
679
transactions: [
6810
ExpectedTransactionOutput(

stackslib/src/chainstate/tests/snapshots/blockstack_lib__chainstate__tests__consensus__chainstate_error_expression_stack_depth_too_deep.snap

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ source: stackslib/src/chainstate/tests/consensus.rs
33
expression: result
44
---
55
[
6-
Failure("Invalid Stacks block 4283815e1f66aa52f455cfe8a415c8ff1c3d28794b83a08384534e30650554e2: ClarityError(Parse(ParseError { err: ExpressionStackDepthTooDeep, pre_expressions: None, diagnostic: Diagnostic { level: Error, message: \"AST has too deep of an expression nesting. The maximum stack depth is 64\", spans: [], suggestion: None } }))"),
7-
Failure("Invalid Stacks block b97c37a0da184764a8eb0769d6c8a9af0a6c98b0e6c950423d324286a349bf0c: ClarityError(Parse(ParseError { err: ExpressionStackDepthTooDeep, pre_expressions: None, diagnostic: Diagnostic { level: Error, message: \"AST has too deep of an expression nesting. The maximum stack depth is 64\", spans: [], suggestion: None } }))"),
8-
Failure("Invalid Stacks block 121b03507be0248b0abd05ccf93403e3c50bd8969e8b1c4d2d3f215fd6243576: ClarityError(Parse(ParseError { err: ExpressionStackDepthTooDeep, pre_expressions: None, diagnostic: Diagnostic { level: Error, message: \"AST has too deep of an expression nesting. The maximum stack depth is 64\", spans: [], suggestion: None } }))"),
96
Failure("Invalid Stacks block 0cb105df328cc9565f4817071f27374a10d73f1fd88a2a91ccf2885b41bef3e3: ClarityError(Parse(ParseError { err: ExpressionStackDepthTooDeep, pre_expressions: None, diagnostic: Diagnostic { level: Error, message: \"AST has too deep of an expression nesting. The maximum stack depth is 64\", spans: [], suggestion: None } }))"),
107
Failure("Invalid Stacks block 516690436438389acc8b58ea7bbbd0a04d844f4f69f8d1ea0500458d9fa8e4d7: ClarityError(Parse(ParseError { err: ExpressionStackDepthTooDeep, pre_expressions: None, diagnostic: Diagnostic { level: Error, message: \"AST has too deep of an expression nesting. The maximum stack depth is 64\", spans: [], suggestion: None } }))"),
118
Failure("Invalid Stacks block 96d7c8d5ce7b5452a16079b20a97effd3d3c839e0d97af86484df1f5e48c2b74: ClarityError(Parse(ParseError { err: ExpressionStackDepthTooDeep, pre_expressions: None, diagnostic: Diagnostic { level: Error, message: \"AST has too deep of an expression nesting. The maximum stack depth is 64\", spans: [], suggestion: None } }))"),

0 commit comments

Comments
 (0)