neofs-node icon indicating copy to clipboard operation
neofs-node copied to clipboard

Why Alphabet nodes vote for the validators on their startup?

Open notimetoname opened this issue 1 year ago • 2 comments

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?

notimetoname avatar Jun 19 '23 20:06 notimetoname

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.

roman-khimov avatar Jun 20 '23 13:06 roman-khimov

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?

notimetoname avatar Jun 21 '23 13:06 notimetoname