forked from TrueCloudLab/frostfs-contract
[#48] container: Don't invoke frostfsid contract
Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>feature/add_iterator_chains
parent
8affa716e0
commit
501b0c5e3c
|
@ -13,7 +13,6 @@ safemethods:
|
||||||
- "version"
|
- "version"
|
||||||
permissions:
|
permissions:
|
||||||
- methods:
|
- methods:
|
||||||
- "addKey"
|
|
||||||
- "addRecord"
|
- "addRecord"
|
||||||
- "deleteRecords"
|
- "deleteRecords"
|
||||||
- "register"
|
- "register"
|
||||||
|
|
|
@ -191,7 +191,6 @@ func PutNamed(container []byte, signature interop.Signature,
|
||||||
|
|
||||||
ownerID := ownerFromBinaryContainer(container)
|
ownerID := ownerFromBinaryContainer(container)
|
||||||
containerID := crypto.Sha256(container)
|
containerID := crypto.Sha256(container)
|
||||||
frostfsIDContractAddr := storage.Get(ctx, frostfsIDContractKey).(interop.Hash160)
|
|
||||||
cnr := Container{
|
cnr := Container{
|
||||||
value: container,
|
value: container,
|
||||||
sig: signature,
|
sig: signature,
|
||||||
|
@ -264,10 +263,6 @@ func PutNamed(container []byte, signature interop.Signature,
|
||||||
storage.Put(ctx, key, domain)
|
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.Log("added new container")
|
||||||
runtime.Notify("PutSuccess", containerID, publicKey)
|
runtime.Notify("PutSuccess", containerID, publicKey)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue