zenon-network / go-zenon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Random seed for pillar election only uses height

georgezgeorgez opened this issue · comments

return int64(context.hashH.Height)

Commented as:
// Generates a deterministic seed based on the context
// formula depends on seed, weights and momentumHeight

Function in practice only depends on height

my understanding is that the seed is used to create a random permutation on pillars which have been sorted by delegation weight

theoretically as long as the number of pillars is the same and the rank of a pillar is the same, a pillar can determine at which heights it will be chosen in advance

changing this would be a consensus change

Slight clarification
for group A pillars, changes to total pillar numbers wouldn't affect the selection
this is slightly worse because group A of course has significant weight in the network by definition

further discussion on future vision would render this obsolete