nspcc-dev / neofs-dev-env

NeoFS local Development and Testing environment
https://fs.neo.org
GNU General Public License v3.0
9 stars 25 forks source link

Add Makefile target to configure EigenTrustAlpha #71

Closed alexvanin closed 3 years ago

alexvanin commented 3 years ago

After #65 there is a EigenTrustAlpha record in global config. We have Makefile targets in neofs_config.mk for each global config record. However EigenTrustAlpha differs from others records -- it has string value instead of int.

I propose to change bin/config.sh to take value type as the first argument: either string or int. Then targets from neofs_config.mk will look like this:

# Update epoch duration in side chain blocks (make update.epoch_duration val=30)
update.epoch_duration:
        @./bin/config.sh int EpochDuration $(val)

...

# Update alpha parameter of EigenTrust algorithm in 0 <= f <= 1.0 (make update.eigen_trust_value val=0.2)
update.eigen_trust_value:
        @./bin/config.sh string EigenTrustValue $(val)