Skip to content

Drop netmap IR list use#3707

Merged
roman-khimov merged 2 commits intomasterfrom
drop-netmap-ir-list-use
Nov 28, 2025
Merged

Drop netmap IR list use#3707
roman-khimov merged 2 commits intomasterfrom
drop-netmap-ir-list-use

Conversation

@roman-khimov
Copy link
Member

No description provided.

1. We always have notary in FS chain.
2. Processor updates IR list via UpdateNeoFSAlphabetList() which means it
   uses RoleManagement and NeoFSAlphabet role there.
3. SN unconditionally uses the list from RoleManagement.
4. IR storage in netmap contract is long deprecated.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
Signed-off-by: Roman Khimov <roman@nspcc.ru>
} else {
irf = NewIRFetcherWithoutNotary(server.netmapClient)
}
var irf = NewIRFetcherWithNotary(server.fsChainClient)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. it may not be an interface now (but ok to be that)
  2. it is used in a single constructor, no need to have a separate var now

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable is used twice, that's exactly why it's still a variable. I thought of removing this interface completely, but currently it's the same as SNs use, so some symmetry can be helpful.

@roman-khimov roman-khimov merged commit 79e4ff0 into master Nov 28, 2025
20 checks passed
@roman-khimov roman-khimov deleted the drop-netmap-ir-list-use branch November 28, 2025 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants