stmgr: GetNtwkVersion: return genesis network version before the first upgrade
This commit is contained in:
parent
25b2e144b8
commit
0bfbcfb5e9
@ -8,6 +8,8 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/filecoin-project/lotus/build"
|
||||||
|
|
||||||
"github.com/filecoin-project/specs-actors/v7/actors/migration/nv15"
|
"github.com/filecoin-project/specs-actors/v7/actors/migration/nv15"
|
||||||
|
|
||||||
"github.com/ipfs/go-cid"
|
"github.com/ipfs/go-cid"
|
||||||
@ -161,7 +163,8 @@ func (us UpgradeSchedule) GetNtwkVersion(e abi.ChainEpoch) (network.Version, err
|
|||||||
return u.Network, nil
|
return u.Network, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return network.Version0, xerrors.Errorf("Epoch %d has no defined network version", e)
|
|
||||||
|
return build.GenesisNetworkVersion, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (sm *StateManager) HandleStateForks(ctx context.Context, root cid.Cid, height abi.ChainEpoch, cb ExecMonitor, ts *types.TipSet) (cid.Cid, error) {
|
func (sm *StateManager) HandleStateForks(ctx context.Context, root cid.Cid, height abi.ChainEpoch, cb ExecMonitor, ts *types.TipSet) (cid.Cid, error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user