mirror of
https://github.com/nspcc-dev/neofs-contract.git
synced 2026-03-01 04:28:59 +00:00
Network map versioning and events #220
Labels
No labels
I1
I2
I3
I4
S1
S2
S3
S4
U1
U2
U3
U4
alphabet
audit
balance
blocked
bug
config
container
discussion
documentation
enhancement
feature
go
good first issue
help wanted
neofs
neofsid
netmap
nns
nns
performance
proxy
question
reputation
security
task
test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nspcc-dev/neofs-contract#220
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @roman-khimov on GitHub (Dec 11, 2025).
Is your feature request related to a problem? Please describe.
I'm always frustrated when I see this:
We do have a new epoch, but the network map hasn't changed a bit. All of the things node does are completely irrelevant here. What's even more problematic is that all nodes do the same thing at the same time. All nodes at least come for the "new" network map which in some cases can even lead to things like
which will be resolved with retries, but still it's too easy to avoid this.
Describe the solution you'd like
Add network map versioning (just a counter). Identify maps by these numbers, store them in contract. If there are no changes to the map in the new epoch --- keep the ID the same, if there are changes --- increment it and throw an event nodes can watch for.
Same thing can be useful for policer fine-tuning, a new map version can trigger it to run faster in attempt to restore proper placements.
Describe alternatives you've considered
Things work as is, but suboptimally.
@roman-khimov commented on GitHub (Dec 11, 2025):
This shatters the concept of an epoch somewhat, btw. I guess the other primary epoch-dependent thing is billing. But that one wants astronomic time in fact.