Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore/merge develop to next 2023 02 09 #3564

Merged
merged 192 commits into from
Feb 14, 2023

Conversation

jcnelson
Copy link
Member

@jcnelson jcnelson commented Feb 9, 2023

Can we get this merged so that we unblock progress on #3486 and #3510? Thanks.

fpbgg and others added 30 commits December 7, 2022 15:07
build(deps): Update secp256k1 to 0.24.2
…as happened before when comparators were native functions)
These changes are helpful for other users of stacks-common,
specifically, subnets.
There is no functional difference, since the 2.05 and 2.1 block limits
are identical, but this could cause confusion or a problem later on if
something changes.
….05 -- it's the same as the sortition affirmation map.

Normally, there's no difference because the heaviest block-commit by BTC spend (the 2.1 rule) is the same as the Stacks block-commit with the most confirmations (the 2.05 rule). However, in the current testnet, this is not the case for reward cycle #360. This means that once the 2.1 rules take effect, the node will get stuck -- it will think that the stacks and sortition affirmation maps are not in sync with the heaviest affirmation map, and the node will never sync as a result.

This fix makes it so the heaviest affirmation map -- and by extension, the canonical affirmation map -- is calculated from the sortition affirmation map for reward cycle in epoch 2.05 and earlier.
@codecov
Copy link

codecov bot commented Feb 9, 2023

Codecov Report

Merging #3564 (bde347c) into next (1e32f7e) will increase coverage by 0.86%.
The diff coverage is 44.28%.

@@            Coverage Diff             @@
##             next    #3564      +/-   ##
==========================================
+ Coverage   30.55%   31.41%   +0.86%     
==========================================
  Files         304      304              
  Lines      271424   275329    +3905     
==========================================
+ Hits        82923    86503    +3580     
- Misses     188501   188826     +325     
Impacted Files Coverage Δ
...larity/src/vm/analysis/arithmetic_checker/tests.rs 0.00% <0.00%> (ø)
.../vm/analysis/type_checker/v2_05/tests/contracts.rs 0.00% <0.00%> (ø)
...c/vm/analysis/type_checker/v2_1/tests/contracts.rs 0.00% <0.00%> (ø)
clarity/src/vm/ast/errors.rs 27.74% <0.00%> (-0.19%) ⬇️
clarity/src/vm/database/clarity_store.rs 61.81% <ø> (ø)
clarity/src/vm/docs/mod.rs 0.00% <ø> (ø)
clarity/src/vm/types/serialization.rs 41.94% <ø> (ø)
src/burnchains/bitcoin/bits.rs 8.90% <0.00%> (ø)
src/burnchains/tests/affirmation.rs 0.00% <0.00%> (ø)
src/burnchains/tests/burnchain.rs 0.00% <0.00%> (ø)
... and 151 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Contributor

@sergey-shandar sergey-shandar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trust the merge

kantai
kantai previously requested changes Feb 10, 2023
Copy link
Member

@kantai kantai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you fix the test that broke due to merge (the test doesn't seem broken in develop)?

#5 157.2 thread 'tests::neon_integrations::stx_transfer_btc_integration_test' panicked at 'unexpected btc transaction type', testnet/stacks-node/src/tests/neon_integrations.rs:1706:21

@jcnelson
Copy link
Member Author

cc @pavitthrap re: stx_transfer_btc_integration_test

@jcnelson
Copy link
Member Author

Okay, I think this text is fixed. Let's see if CI likes it.

@jcnelson jcnelson requested a review from kantai February 14, 2023 15:34
@jcnelson jcnelson dismissed kantai’s stale review February 14, 2023 15:34

Fixed the failing test

@jcnelson jcnelson merged commit 8e4672b into next Feb 14, 2023
@blockstack-devops
Copy link
Contributor

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@stacks-network stacks-network locked as resolved and limited conversation to collaborators Nov 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Status: Status: ✅ Done
Development

Successfully merging this pull request may close these issues.