[#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>
enable-notary-in-public-chains
Alex Vanin 2021-03-17 16:49:18 +03:00 committed by Alex Vanin
parent 70a593eb77
commit a1f0919f98
2 changed files with 3 additions and 3 deletions

View File

@ -168,7 +168,7 @@ func NewEpoch(epochNum int) bool {
multiaddr := common.InnerRingMultiAddressViaStorage(ctx, netmapContractKey)
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)

View File

@ -331,12 +331,12 @@ func ListContainerSizes(epoch int) [][]byte {
return result
}
func ProcessEpoch(epochNum int) {
func NewEpoch(epochNum int) {
ctx := storage.GetContext()
multiaddr := common.InnerRingMultiAddressViaStorage(ctx, netmapContractKey)
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)