neofs-node
neofs-node copied to clipboard
Why Alphabet nodes vote for the validators on their startup?
What I have read:
- https://github.com/nspcc-dev/neofs-node/pull/170
- https://docs.neo.org/docs/en-us/basic/governance.html
- https://github.com/nspcc-dev/neofs-node/issues/2311
- https://github.com/nspcc-dev/neofs-node/pull/2363
The question: why do we need it? What is the purpose of such voting? Why can't it be done on network start (e.g. in neofs-amd
as a separate step)?
It makes the alphabet contracts to be the winners of the voting and get more GAS. But it really needs to be done once on network startup and once every time IR is changed. Initial voting can be done in neofs-adm
(or any managing procedure), and all the following can be done externally or by the IR's control service.
Where am I wrong?
It's not a big problem, the GAS cost is rather low and you don't restart nodes often. Then #2365 solves the main part of it and still leaves this behavior as a mechanism for IR change. Control/adm may be nice, but just require more effort for a very little gain.
It's not a big problem, the GAS cost is rather low and you don't restart nodes often.
My main question is about that config value in general. Is it possible and is it more convenient to remove it at all and do such things another way? Should it be an app configuration?