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

feat: statelessnet protocol #10518

Merged
merged 4 commits into from
Jan 29, 2024
Merged

feat: statelessnet protocol #10518

merged 4 commits into from
Jan 29, 2024

Conversation

Longarithm
Copy link
Member

@Longarithm Longarithm commented Jan 29, 2024

Set special protocol feature and version to launch near/near-one-project-tracking#20 against.

Copy link

codecov bot commented Jan 29, 2024

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (84b4559) 72.00% compared to head (0060838) 71.99%.

Files Patch % Lines
neard/src/cli.rs 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #10518      +/-   ##
==========================================
- Coverage   72.00%   71.99%   -0.01%     
==========================================
  Files         720      720              
  Lines      146558   146559       +1     
  Branches   146558   146559       +1     
==========================================
- Hits       105531   105520      -11     
- Misses      36158    36175      +17     
+ Partials     4869     4864       -5     
Flag Coverage Δ
backward-compatibility 0.08% <0.00%> (ø)
db-migration 0.08% <0.00%> (ø)
genesis-check 1.25% <0.00%> (-0.01%) ⬇️
integration-tests 36.96% <33.33%> (+0.05%) ⬆️
linux 71.20% <33.33%> (-0.02%) ⬇️
linux-nightly 71.35% <33.33%> (+0.02%) ⬆️
macos 54.90% <33.33%> (-0.22%) ⬇️
pytests 1.47% <0.00%> (-0.01%) ⬇️
sanity-checks 1.27% <0.00%> (-0.01%) ⬇️
unittests 67.95% <33.33%> (-0.01%) ⬇️
upgradability 0.13% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Longarithm Longarithm marked this pull request as ready for review January 29, 2024 13:31
@Longarithm Longarithm requested a review from a team as a code owner January 29, 2024 13:31
Copy link
Contributor

@wacban wacban left a comment

Choose a reason for hiding this comment

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

LGTM, thanks a lot!

Please update the PR title.

Can you do a quick test, build neard with this feature and make sure that --version gives the statelessnet protocol version?

Comment on lines 451 to 455
if cfg!(feature = "nightly")
|| cfg!(feature = "nightly_protocol")
|| cfg!(feature = "statelessnet_protocol")
{
let version = 10000;
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm afraid to ask what is going on here.

Copy link
Member Author

Choose a reason for hiding this comment

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

From what I saw here, DB version is set to smth large if protocol is not stable.
Actually, now I'm not sure why this is needed at all. We may want to upgrade DB on master and then we'll want to see stateless nodes upgraded as well. So I'm removing this for statelessnet

@Longarithm Longarithm changed the title draft: statelessnet feat: statelessnet protocol Jan 29, 2024
@Longarithm Longarithm added this pull request to the merge queue Jan 29, 2024
Merged via the queue into near:master with commit abb2b28 Jan 29, 2024
24 of 26 checks passed
@Longarithm Longarithm deleted the statelessnet branch January 29, 2024 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants