Revert local change

pull/1866/head
Rongjian Lan 5 years ago
parent 1049bd5f24
commit 33a452fa4e
  1. 2
      block/factory/factory.go

@ -30,7 +30,7 @@ func NewFactory(chainConfig *params.ChainConfig) Factory {
func (f *factory) NewHeader(epoch *big.Int) *block.Header {
var impl blockif.Header
switch {
case epoch.Cmp(f.chainConfig.StakingEpoch) < 0:
case epoch.Cmp(f.chainConfig.StakingEpoch) >= 0:
impl = v3.NewHeader()
case epoch.Cmp(f.chainConfig.CrossLinkEpoch) >= 0:
impl = v2.NewHeader()

Loading…
Cancel
Save