forked from TrueCloudLab/frostfs-contract
[#48] container: Don't invoke frostfsid contract
Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
This commit is contained in:
parent
8affa716e0
commit
501b0c5e3c
2 changed files with 0 additions and 6 deletions
|
@ -13,7 +13,6 @@ safemethods:
|
|||
- "version"
|
||||
permissions:
|
||||
- methods:
|
||||
- "addKey"
|
||||
- "addRecord"
|
||||
- "deleteRecords"
|
||||
- "register"
|
||||
|
|
|
@ -191,7 +191,6 @@ func PutNamed(container []byte, signature interop.Signature,
|
|||
|
||||
ownerID := ownerFromBinaryContainer(container)
|
||||
containerID := crypto.Sha256(container)
|
||||
frostfsIDContractAddr := storage.Get(ctx, frostfsIDContractKey).(interop.Hash160)
|
||||
cnr := Container{
|
||||
value: container,
|
||||
sig: signature,
|
||||
|
@ -264,10 +263,6 @@ func PutNamed(container []byte, signature interop.Signature,
|
|||
storage.Put(ctx, key, domain)
|
||||
}
|
||||
|
||||
if len(token) == 0 { // if container created directly without session
|
||||
contract.Call(frostfsIDContractAddr, "addKey", contract.All, ownerID, [][]byte{publicKey})
|
||||
}
|
||||
|
||||
runtime.Log("added new container")
|
||||
runtime.Notify("PutSuccess", containerID, publicKey)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue