frostfs-node/pkg/morph/client/netmap
Evgenii Stratonikov d933609084
[#1689] client/netmap: Refactor Client.config()
There are problems with that code:
- explicit casts,
- `ErrConfigNotFound` which is not a part of a public API,
- hand-rolled assertions, even though neo-go already has everything we
  need.

So, remove the error, use `stackitem/Item.Try*()` methods for
conversions. Note, that readUint64Config() returns an error if the
parameter is missing. This is likely an error, but this behaviour is
preserved in this PR: `TryInteger()` returns error when applied to
`Null`. By contract, `TryBool()` returns false for `Null`, so this
PR introduces no functional changes.

Refs 82c7a50b8a/pkg/vm/stackitem/item.go (L418)

Change-Id: I445d28a7c6b5abb9a2bb97b57c0cc42d617e16f7
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2025-04-05 09:16:32 +03:00
..
client.go [#1538] morph/client: Remove TryNotary() option from side-chain contracts 2024-12-04 15:30:58 +03:00
config.go [#1689] client/netmap: Refactor Client.config() 2025-04-05 09:16:32 +03:00
epoch.go [#1613] morph: Add tracing for morph queries to neo-go 2025-02-05 16:38:20 +03:00
innerring.go [#1613] morph: Add tracing for morph queries to neo-go 2025-02-05 16:38:20 +03:00
netmap.go [#1613] morph: Add tracing for morph queries to neo-go 2025-02-05 16:38:20 +03:00
netmap_test.go [#1382] morph: Replace deprecated methods 2024-09-18 14:29:27 +03:00
new_epoch.go [#1558] morph/client: Remove "could not"/"can't"/"failed to" from error messages 2024-12-12 15:30:12 +03:00
peer.go [#1558] morph/client: Remove "could not"/"can't"/"failed to" from error messages 2024-12-12 15:30:12 +03:00
snapshot.go [#1613] morph: Add tracing for morph queries to neo-go 2025-02-05 16:38:20 +03:00
update_state.go [#1496] node/control: Await until SetNetmapStatus() persists 2024-11-15 16:36:07 +03:00