Skip to content

Commit

Permalink
core: update committee every [committee length] blocks
Browse files Browse the repository at this point in the history
Was changed in neo-project/neo#1848. Affects
storage dumps.
  • Loading branch information
AnnaShaleva committed Nov 16, 2020
1 parent 88cee80 commit 410dbf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/core/native/native_neo.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ func (n *NEO) updateCommittee(ic *interop.Context) error {
// ShouldUpdateCommittee returns true if committee is updated at block h.
func ShouldUpdateCommittee(h uint32, bc blockchainer.Blockchainer) bool {
cfg := bc.GetConfig()
r := cfg.ValidatorsCount + len(cfg.StandbyCommittee)
r := len(cfg.StandbyCommittee)
return h%uint32(r) == 0
}

Expand Down

0 comments on commit 410dbf6

Please sign in to comment.