hashgraph / hedera-services

Crypto, token, consensus, file, and smart contract services for the Hedera public ledger

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use `restart` logic on all `TokenSchemas`

Neeharika-Sompalli opened this issue · comments

In 0490TokenSchema.restart() we have added logic to update state if there are any added nodes during upgrade. But since the default restart on Schema is a No-Op, the V0500TokenSchema is missing this logic.

Add the staking weight update logic to V0500TokenSchema.restart()

Solution:

Extract the staking weight management logic into a base class that need to be extended by all token schemas.