ir: Use Neo Go protocol config validation in local consensus launch mode #1161

Open
opened 2025-12-28 17:22:00 +00:00 by sami · 0 comments
Owner

Originally created by @cthulhu-rider on GitHub (Dec 4, 2023).

currently IR validates blockchain config by itself

as @AnnaShaleva mentioned in comment, Neo Go lib provides https://pkg.go.dev/github.com/nspcc-dev/neo-go@v0.104.0/pkg/config#ProtocolConfiguration.Validate that performs similar checks

we cannot reuse this checker easily cuz its errors are tied to the Neo Go config format while IR has its own. Specific error system can help

Originally created by @cthulhu-rider on GitHub (Dec 4, 2023). currently IR [validates](https://github.com/nspcc-dev/neofs-node/blob/c93822827c37c4cace4c86d8861595eff5243102/pkg/innerring/config.go#L28) blockchain config by itself as @AnnaShaleva mentioned in [comment](https://github.com/nspcc-dev/neofs-node/pull/2652#discussion_r1413419752), Neo Go lib provides https://pkg.go.dev/github.com/nspcc-dev/neo-go@v0.104.0/pkg/config#ProtocolConfiguration.Validate that performs similar checks we cannot reuse this checker easily cuz its errors are tied to the Neo Go config format while IR has its own. Specific error system can help
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-node#1161
No description provided.