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

ir: Do not create new notary requests for SN netmap entrances #2717

Merged

Conversation

carpawell
Copy link
Member

@carpawell carpawell self-assigned this Jan 12, 2024
@carpawell carpawell force-pushed the fix/spawning-useless-notary-request-for-bootstrap branch from 4eee5b0 to 5d26195 Compare January 12, 2024 18:09
Copy link

codecov bot commented Jan 12, 2024

Codecov Report

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

Comparison is base (de84b12) 28.78% compared to head (511f7a2) 28.78%.

Files Patch % Lines
pkg/innerring/processors/netmap/process_peers.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2717      +/-   ##
==========================================
- Coverage   28.78%   28.78%   -0.01%     
==========================================
  Files         415      415              
  Lines       32388    32378      -10     
==========================================
- Hits         9324     9319       -5     
+ Misses      22230    22224       -6     
- Partials      834      835       +1     

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

@carpawell
Copy link
Member Author

Checked, works.
Not sure if it closes #830.
We definitely should do smth more, just look at these cute duplicated methods (not sure if there are any issue about it).

@carpawell carpawell marked this pull request as ready for review January 12, 2024 18:11
Copy link
Member

@roman-khimov roman-khimov left a comment

Choose a reason for hiding this comment

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

It certainly fixes #830. Contracts can be improved, but gradually and in a separate issue, we need to ensure only one method is called for at least a release and then we can remove the other one.

Copy link
Contributor

@cthulhu-rider cthulhu-rider left a comment

Choose a reason for hiding this comment

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

i'd prefer to not embody commit by issues only. Text and other commit refs are more reliable, issue refs complement

@carpawell carpawell force-pushed the fix/spawning-useless-notary-request-for-bootstrap branch from 5d26195 to 4c77cd2 Compare January 15, 2024 09:34
After fb13ef9, it is now possible not to create
an additional notary request but to sign the original one. See also
nspcc-dev/neofs-contract#324 that includes SN in a
netmap with `AddPeer` netmap call only (without the formly required `AddPeerIR`
call). Closes #830.

Signed-off-by: Pavel Karpy <[email protected]>
@carpawell carpawell force-pushed the fix/spawning-useless-notary-request-for-bootstrap branch from 4c77cd2 to 511f7a2 Compare January 15, 2024 15:32
@roman-khimov roman-khimov merged commit c6a4bff into master Jan 15, 2024
8 of 11 checks passed
@roman-khimov roman-khimov deleted the fix/spawning-useless-notary-request-for-bootstrap branch January 15, 2024 15: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.

3 participants