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 configure network settings #2664

Merged
merged 4 commits into from
Dec 6, 2023

Conversation

cthulhu-rider
Copy link
Contributor

No description provided.

Balance and Container contracts now depend on the Netmap one which is
completely independent.

Also reflect the current order in the file names of `contracts/`
directory.

Signed-off-by: Leonard Lyubich <[email protected]>
@cthulhu-rider cthulhu-rider marked this pull request as draft December 1, 2023 11:00
@cthulhu-rider
Copy link
Contributor Author

cthulhu-rider commented Dec 1, 2023

deployment works with nspcc-dev/neofs-dev-env#282 but IR does not become healthy, will take a look

UPD: there was smth with my vendor/ dir, now everything works fine

checked that configurations are equal with removed network section in the NeoFS ADM config:

$ neofs-cli -r s01.neofs.devenv:8080 -w ../devenv/wallets/wallet.json netmap netinfo
Epoch: 3
Network magic: [net 0x3c2d] 15405
Time per block: 1s
NeoFS network configuration (system)
  Audit fee: 0
  Storage price: 0
  Container fee: 1000
  Container alias fee: 500
  EigenTrust alpha: 0.1
  Number of EigenTrust iterations: 4
  Epoch duration: 240
  Inner Ring candidate fee: 0
  Maximum object size: 67108864
  Withdrawal fee: 0
  Homomorphic hashing disabled: false
  Maintenance mode allowed: false
NeoFS network configuration (other)
  SystemDNS: 636f6e7461696e6572

@cthulhu-rider cthulhu-rider force-pushed the 2660-network-settings-autocfg branch from ad4333f to cd54f2c Compare December 2, 2023 04:44
Copy link

codecov bot commented Dec 2, 2023

Codecov Report

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

Comparison is base (f33f242) 30.43% compared to head (00176f2) 30.22%.
Report is 5 commits behind head on master.

Files Patch % Lines
pkg/innerring/config.go 27.77% 13 Missing ⚠️
pkg/innerring/innerring.go 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2664      +/-   ##
==========================================
- Coverage   30.43%   30.22%   -0.21%     
==========================================
  Files         406      406              
  Lines       30068    30025      -43     
==========================================
- Hits         9150     9074      -76     
- Misses      20134    20171      +37     
+ Partials      784      780       -4     

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

@cthulhu-rider cthulhu-rider force-pushed the 2660-network-settings-autocfg branch from cd54f2c to 6236b43 Compare December 2, 2023 04:52
In v0.19.1 Balance contract uses epoch subscription mechanism requiring
committee witness of the deployment transaction and allowance to call
the Netmap contract. Container contract also needs to use this mechanism.

Signed-off-by: Leonard Lyubich <[email protected]>
Starting from v0.19.1 NeoFS ID contract does not process extra
deployment data.

Signed-off-by: Leonard Lyubich <[email protected]>
@cthulhu-rider cthulhu-rider force-pushed the 2660-network-settings-autocfg branch from 6236b43 to ac357fb Compare December 2, 2023 04:55
Network settings configuration did not justify itself because used only
when initializing the FS chain.

Use default network settings during the FS chain auto-deployment (same
ones used by the NeoFS ADM tool). Introduce `fschain_autodeploy` config
flag that replaces mode tuning previously based on `network_settings`
section presence.

Closes #2660.

Signed-off-by: Leonard Lyubich <[email protected]>
@cthulhu-rider cthulhu-rider force-pushed the 2660-network-settings-autocfg branch from ac357fb to 00176f2 Compare December 2, 2023 04:58
@cthulhu-rider cthulhu-rider marked this pull request as ready for review December 2, 2023 04:59
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.

OK otherwise

pkg/morph/deploy/deploy.go Show resolved Hide resolved
@roman-khimov roman-khimov merged commit 4bae88a into master Dec 6, 2023
5 of 10 checks passed
@roman-khimov roman-khimov deleted the 2660-network-settings-autocfg branch December 6, 2023 07:04
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