lotus/chain/stmgr/forks.go

18 lines
361 B
Go
Raw Normal View History

2019-12-19 18:46:30 +00:00
package stmgr
import (
"context"
"github.com/ipfs/go-cid"
"github.com/filecoin-project/lotus/build"
)
func (sm *StateManager) handleStateForks(ctx context.Context, pstate cid.Cid, height uint64) (cid.Cid, error) {
switch height {
case build.ForkNoPowerEPSUpdates: // TODO: +1?
return sm.forkNoPowerEPS(ctx, pstate)
default:
return pstate, nil
}
}