Make notary support enabled by default in morph client #905
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#905
Loading…
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?
For now notary subsystem is widely used, so, the proposal is to enable notary support by default in morph client constructor.
To make this, we need to invoke EnableNotarySupport in constructor, but at the same it would be better to make this method
deprecated
to notify client to stop using this invocation explictly.I suggest to create
enableNotarySupport
, copy the definition to there and makeAlso, we need to avoid throwing
panic
-s like here, here etc.It is required to make morph client non-panic-prone and return error instead
panic
.Since, we're getting rid of
EnableNotarySupport
, we need to indroduce a method to disable the notary support enabled by default:While implementing this feature faced next problem in innerring:
initialization of morph client now requires proxy contract
initialization of contracts requires morph client