Skip to content

Limit max REP value and number of REPs #307

@carpawell

Description

@carpawell

Is your feature request related to a problem? Please describe.

I'm always frustrated when nothing limits values. Sometimes, I need to think about limitations in real cases (e.g., we have contracts, contracts have stack/memory/storage limits), and I do not know what to do and if it is possible to have 1024 replicas 1024 times or even more.

Describe the solution you'd like

Check there are no unrealistic containers in our networks and add nice limits to API. 256 max REP value and 256 max numbers of REPs look good to me.

Describe alternatives you've considered

  1. Any other nice number: 128, 512, 1024. But 8 bits are traditionally a good pick.
  2. Do not have limits at all. But it will be possible to fail in some unexpected things because of overflow. Also, I cannot imagine thousands of SNs in real networks and a person who needs this number of REPlicas.

Additional context

nspcc-dev/neofs-contract#438

Metadata

Metadata

Assignees

No one assigned

    Labels

    I2Regular impactS2Regular significanceU3RegulardocumentationImprovements or additions to documentationenhancementImproving existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions