update testnet epoch for agg sig

pull/3374/head
Rongjian Lan 4 years ago
parent 97063591df
commit df88b601d2
  1. 2
      consensus/consensus_service.go

@ -312,7 +312,7 @@ func (consensus *Consensus) UpdateConsensusInformation() Mode {
// Enable aggregate sig at epoch 1000 for mainnet, at epoch 53000 for testnet, and always for other nets. // Enable aggregate sig at epoch 1000 for mainnet, at epoch 53000 for testnet, and always for other nets.
if (consensus.ChainReader.Config().ChainID == params.MainnetChainID && curEpoch.Cmp(big.NewInt(1000)) > 0) || if (consensus.ChainReader.Config().ChainID == params.MainnetChainID && curEpoch.Cmp(big.NewInt(1000)) > 0) ||
(consensus.ChainReader.Config().ChainID == params.TestnetChainID && curEpoch.Cmp(big.NewInt(53000)) > 0) || (consensus.ChainReader.Config().ChainID == params.TestnetChainID && curEpoch.Cmp(big.NewInt(54500)) > 0) ||
(consensus.ChainReader.Config().ChainID != params.MainnetChainID && consensus.ChainReader.Config().ChainID != params.TestChainID) { (consensus.ChainReader.Config().ChainID != params.MainnetChainID && consensus.ChainReader.Config().ChainID != params.TestChainID) {
consensus.AggregateSig = true consensus.AggregateSig = true
} }

Loading…
Cancel
Save