Use iterators for audit contract #122

Closed
opened 2025-12-28 18:08:36 +00:00 by sami · 1 comment
Owner

Originally created by @AnnaShaleva on GitHub (Jan 27, 2023).

Method nspcc-dev/neofs-contract@dc89137484/audit/audit_contract.go (L135)
lists the set of DataAuditResult IDs collected for all containers for all epochs for all IR nodes, the result of this method is limited by MaxStackSize-1 (one for the resulting array and 2047 DataAuditResults). We need to return iterator from this method (and adapt all its usages to the new API). ListByEpoch, ListByCID and ListByNode may also be adjusted, but it's not so critical for them (there's not so much audit results per epoch).

Ref. #304.

Originally created by @AnnaShaleva on GitHub (Jan 27, 2023). Method https://github.com/nspcc-dev/neofs-contract/blob/dc89137484cd042e79378d4745558cc560b6368a/audit/audit_contract.go#L135 lists the set of `DataAuditResult` IDs collected for all containers for all epochs for all IR nodes, the result of this method is limited by `MaxStackSize-1` (one for the resulting array and 2047 `DataAuditResults`). We need to return iterator from this method (and adapt all its usages to the new API). `ListByEpoch`, `ListByCID` and `ListByNode` may also be adjusted, but it's not so critical for them (there's not so much audit results per epoch). Ref. #304.
sami 2025-12-28 18:08:36 +00:00
Author
Owner

@roman-khimov commented on GitHub (Jul 9, 2025):

No audit — no problem. #499

@roman-khimov commented on GitHub (Jul 9, 2025): No audit — no problem. #499
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nspcc-dev/neofs-contract#122
No description provided.