forked from TrueCloudLab/frostfs-contract
[#61] container: Unify naming for new epoch processing functions
The same name is in network map and balance contracts. Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
70a593eb77
commit
a1f0919f98
2 changed files with 3 additions and 3 deletions
|
@ -168,7 +168,7 @@ func NewEpoch(epochNum int) bool {
|
||||||
|
|
||||||
multiaddr := common.InnerRingMultiAddressViaStorage(ctx, netmapContractKey)
|
multiaddr := common.InnerRingMultiAddressViaStorage(ctx, netmapContractKey)
|
||||||
if !runtime.CheckWitness(multiaddr) {
|
if !runtime.CheckWitness(multiaddr) {
|
||||||
panic("epochNum: this method must be invoked from inner ring")
|
panic("newEpoch: this method must be invoked from inner ring")
|
||||||
}
|
}
|
||||||
|
|
||||||
it := storage.Find(ctx, []byte{}, storage.KeysOnly)
|
it := storage.Find(ctx, []byte{}, storage.KeysOnly)
|
||||||
|
|
|
@ -331,12 +331,12 @@ func ListContainerSizes(epoch int) [][]byte {
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
func ProcessEpoch(epochNum int) {
|
func NewEpoch(epochNum int) {
|
||||||
ctx := storage.GetContext()
|
ctx := storage.GetContext()
|
||||||
|
|
||||||
multiaddr := common.InnerRingMultiAddressViaStorage(ctx, netmapContractKey)
|
multiaddr := common.InnerRingMultiAddressViaStorage(ctx, netmapContractKey)
|
||||||
if !runtime.CheckWitness(multiaddr) {
|
if !runtime.CheckWitness(multiaddr) {
|
||||||
panic("processEpoch: this method must be invoked from inner ring")
|
panic("newEpoch: this method must be invoked from inner ring")
|
||||||
}
|
}
|
||||||
|
|
||||||
candidates := keysToDelete(ctx, epochNum)
|
candidates := keysToDelete(ctx, epochNum)
|
||||||
|
|
Loading…
Reference in a new issue