Skip to content

Commit 6d23916

Browse files
committed
Merge branch 'develop' of https://github.com/stacks-network/stacks-core into bug/validation-queue-race-condition
2 parents 2a4f766 + 025af8e commit 6d23916

File tree

45 files changed

+1433
-157
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1433
-157
lines changed

.github/workflows/bitcoin-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ jobs:
143143
- tests::nakamoto_integrations::v3_signer_api_endpoint
144144
- tests::nakamoto_integrations::test_shadow_recovery
145145
- tests::nakamoto_integrations::signer_chainstate
146+
- tests::nakamoto_integrations::sip029_coinbase_change
146147
- tests::nakamoto_integrations::clarity_cost_spend_down
147148
- tests::nakamoto_integrations::v3_blockbyheight_api_endpoint
148149
# TODO: enable these once v1 signer is supported by a new nakamoto epoch

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,20 @@ and this project adheres to the versioning scheme outlined in the [README.md](RE
99

1010
### Added
1111

12+
- New RPC endpoints
13+
- `/v2/clarity/marf/:marf_key_hash`
14+
- `/v2/clarity/metadata/:principal/:contract_name/:clarity_metadata_key`
15+
- When a proposed block is validated by a node, the block can be validated even when the block version is different than the node's default ([#5539](https://github.com/stacks-network/stacks-core/pull/5539))
16+
17+
### Changed
18+
19+
## [3.0.0.0.4]
20+
21+
### Added
22+
1223
### Changed
1324

25+
- Use the same burn view loader in both block validation and block processing
1426

1527
## [3.0.0.0.3]
1628

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ _Do_ document things that are not clear, e.g.:
579579
Keep in mind that better variable names can reduce the need for comments, e.g.:
580580

581581
- `burnblock_height` instead of `height` may eliminate the need to comment that `height` refers to a burnblock height
582-
- `process_microblocks` instead of `process_blocks` is more correct, and may eliminate the need to to explain that the inputs are microblocks
582+
- `process_microblocks` instead of `process_blocks` is more correct, and may eliminate the need to explain that the inputs are microblocks
583583
- `add_transaction_to_microblock` explains more than `handle_transaction`, and reduces the need to even read the comment
584584

585585
# Licensing and contributor license agreement

clarity/src/vm/analysis/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ pub fn run_analysis(
148148
| StacksEpochId::Epoch23
149149
| StacksEpochId::Epoch24
150150
| StacksEpochId::Epoch25
151-
| StacksEpochId::Epoch30 => {
151+
| StacksEpochId::Epoch30
152+
| StacksEpochId::Epoch31 => {
152153
TypeChecker2_1::run_pass(&epoch, &mut contract_analysis, db, build_type_map)
153154
}
154155
StacksEpochId::Epoch10 => {

clarity/src/vm/analysis/type_checker/mod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ impl FunctionType {
5252
| StacksEpochId::Epoch23
5353
| StacksEpochId::Epoch24
5454
| StacksEpochId::Epoch25
55-
| StacksEpochId::Epoch30 => self.check_args_2_1(accounting, args, clarity_version),
55+
| StacksEpochId::Epoch30
56+
| StacksEpochId::Epoch31 => self.check_args_2_1(accounting, args, clarity_version),
5657
StacksEpochId::Epoch10 => {
5758
return Err(CheckErrors::Expects("Epoch10 is not supported".into()).into())
5859
}
@@ -75,7 +76,8 @@ impl FunctionType {
7576
| StacksEpochId::Epoch23
7677
| StacksEpochId::Epoch24
7778
| StacksEpochId::Epoch25
78-
| StacksEpochId::Epoch30 => {
79+
| StacksEpochId::Epoch30
80+
| StacksEpochId::Epoch31 => {
7981
self.check_args_by_allowing_trait_cast_2_1(db, clarity_version, func_args)
8082
}
8183
StacksEpochId::Epoch10 => {

clarity/src/vm/costs/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,8 @@ impl LimitedCostTracker {
775775
| StacksEpochId::Epoch23
776776
| StacksEpochId::Epoch24
777777
| StacksEpochId::Epoch25
778-
| StacksEpochId::Epoch30 => COSTS_3_NAME.to_string(),
778+
| StacksEpochId::Epoch30
779+
| StacksEpochId::Epoch31 => COSTS_3_NAME.to_string(),
779780
};
780781
Ok(result)
781782
}

clarity/src/vm/docs/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ const LOG2_API: SimpleFunctionAPI = SimpleFunctionAPI {
529529
snippet: "log2 ${1:expr-1}",
530530
signature: "(log2 n)",
531531
description:
532-
"Returns the power to which the number 2 must be raised to to obtain the value `n`, rounded
532+
"Returns the power to which the number 2 must be raised to obtain the value `n`, rounded
533533
down to the nearest integer. Fails on a negative numbers.
534534
",
535535
example: "(log2 u8) ;; Returns u3

clarity/src/vm/functions/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ macro_rules! switch_on_global_epoch {
6363
StacksEpochId::Epoch25 => $Epoch205Version(args, env, context),
6464
// Note: We reuse 2.05 for 3.0.
6565
StacksEpochId::Epoch30 => $Epoch205Version(args, env, context),
66+
// Note: We reuse 2.05 for 3.1.
67+
StacksEpochId::Epoch31 => $Epoch205Version(args, env, context),
6668
}
6769
}
6870
};

clarity/src/vm/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ pub fn execute(program: &str) -> Result<Option<Value>> {
575575
)
576576
}
577577

578-
/// Execute for test in in Clarity2, Epoch21, testnet.
578+
/// Execute for test in Clarity2, Epoch21, testnet.
579579
#[cfg(any(test, feature = "testing"))]
580580
pub fn execute_v2(program: &str) -> Result<Option<Value>> {
581581
execute_with_parameters(

clarity/src/vm/test_util/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ pub fn generate_test_burn_state_db(epoch_id: StacksEpochId) -> UnitTestBurnState
5252
| StacksEpochId::Epoch23
5353
| StacksEpochId::Epoch24
5454
| StacksEpochId::Epoch25
55-
| StacksEpochId::Epoch30 => UnitTestBurnStateDB {
55+
| StacksEpochId::Epoch30
56+
| StacksEpochId::Epoch31 => UnitTestBurnStateDB {
5657
epoch_id,
5758
ast_rules: ASTRules::PrecheckSize,
5859
},

0 commit comments

Comments
 (0)