forked from TrueCloudLab/frostfs-node
[#505] morph/container: Do not parse public key in Put event parser
Morph event structures defined in `pkg/morph/event` should only carry notification values without any additional interpretation. All logical work should be concentrated on app-side. Change data type of `Put.PublicKey` return to byte slice. `ParsePut` doesn't unmarshal public key from now. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
a306eb9ce7
commit
a3ac294902
3 changed files with 7 additions and 21 deletions
|
@ -44,7 +44,7 @@ func (cp *Processor) processContainerPut(put *containerEvent.Put) {
|
|||
err := cp.morphClient.NotaryInvoke(cp.containerContract, cp.feeProvider.SideChainFee(), putContainerMethod,
|
||||
cnrData,
|
||||
put.Signature(),
|
||||
put.PublicKey().Bytes())
|
||||
put.PublicKey())
|
||||
if err != nil {
|
||||
cp.log.Error("can't invoke new container", zap.Error(err))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue