nspcc-dev / neofs-contract

NeoFS smart-contract
Other
9 stars 17 forks source link

Split audit tasks inside audit contract #30

Open alexvanin opened 3 years ago

alexvanin commented 3 years ago

Right now inner ring nodes split all available containers to perform audit autonomously by getting giant container list from container contract (see #29). Later if audit contract will store audit complexity values per container, inner ring node will do more work asking one more contract to split the tasks.

Instead we can offload it to audit contract. Let it iterate through all containers and pick suitable ones for inner ring node. To do so we need:

alexvanin commented 2 years ago

It should be useful in multiimplementation environment, where it's hard synchronize new audit selection policy. It will be easier to update contract than update multiple Inner Ring implementations.