-
Notifications
You must be signed in to change notification settings - Fork 15
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
Define keys to the network config values #214
Comments
Used network parameters as for today.
|
Also, |
I propose to structure network configuration. It's inconvenient to work with raw list of byte arrays. With structured message we won't be needed to describe the format of each parameter. |
I agree, that it will be more explicit to define required network configuration as protobuf message fields. However, there is one interesting case where it is useful to have raw list that stores all parameters from the smart contract. Network configuration can define values unrelated to NeoFS Core, but relevant for deployment environment. For example, it can store address of DNS server, which can resolve bucket nice names into container IDs. This allows:
Encoding / decoding format for this case is negotiated outside of API scope. |
@alexvanin thx, I got it. I think it'd be nice to have a way to distinguish NeoFS native data from the full configuration. In most of the usecases client side needs a subset of the config value (almost always exactly one), but it always receives all of them. What if we'll accept some parameter in request body that will limit data to be read? For example, to begin with, you can specify the need for custom values that are not interpreted by the protocol:
We can go further: accept list of keys to be read. This will allow to read less values than needed. System interpreted values can be enumerated and toggled using bitmask.
|
After the latest SDK changes, de facto format for integer values is 8-byte uint64. I think we should allow less than 8-byte uint64 too:
|
|
There is a need to declare all system parameters stored as raw key-value parameters in `NetworkConfig` messages. So applications can interpret raw configurations in a controlled manner. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
There is a need to declare all system parameters stored as raw key-value parameters in `NetworkConfig` messages. So applications can interpret raw configurations in a controlled manner. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
There is a need to declare all system parameters stored as raw key-value parameters in `NetworkConfig` messages. So applications can interpret raw configurations in a controlled manner. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
There is a need to declare all system parameters stored as raw key-value parameters in `NetworkConfig` messages. So applications can interpret raw configurations in a controlled manner. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
In current protocol network configuration is represented by list of raw KV pairs. When new net config is added, there is no way to select its value by key. I propose to add constant keys to the existing config values.
The text was updated successfully, but these errors were encountered: