nspcc-dev / neofs-contract

NeoFS smart-contract
GNU General Public License v3.0
10 stars 17 forks source link

Use iterators for neofs contract #310

Open AnnaShaleva opened 1 year ago

AnnaShaleva commented 1 year ago

The maximum number of inner ring candidates is not restricted. Any candidate that have paid the fee is able to register himself. Thus, method https://github.com/nspcc-dev/neofs-contract/blob/dc89137484cd042e79378d4745558cc560b6368a/neofs/neofs_contract.go#L141 can be broken after ~1024 candidates registration. We need to refactor this method to return an iterator (and adapt all its usages to the new API).

Ref. #304.