Co-authored-by: Konstantin <k.potapov@softpro.com>
pull/4252/head v4.3.12
Konstantin 2 years ago committed by GitHub
parent 93b14ddca6
commit f8777e0c61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      core/blockchain_impl.go

@ -2967,7 +2967,13 @@ func (bc *BlockChainImpl) SuperCommitteeForNextEpoch(
}
} else {
//propose
beaconEpoch = beacon.CurrentHeader().Epoch()
h := beacon.CurrentHeader()
if h.IsLastBlockInEpoch() {
beaconEpoch = beacon.CurrentHeader().Epoch()
beaconEpoch = beaconEpoch.Add(beaconEpoch, common.Big1)
} else {
beaconEpoch = beacon.CurrentHeader().Epoch()
}
}
utils.Logger().Debug().Msgf("[SuperCommitteeCalculation] isVerify: %+v, realBeaconEpoch:%+v, beaconEpoch: %+v, headerEpoch:%+v, shardStateEpoch:%+v",
isVerify, beacon.CurrentHeader().Epoch(), beaconEpoch, header.Epoch(), shardState.Epoch)

Loading…
Cancel
Save