fix genesis share private key seed check
This commit is contained in:
parent
8774b1d70c
commit
e94e54c27d
|
@ -461,7 +461,7 @@ func (c *SideChain) verifyBlock(block *PoolBlock) (verification error, invalid e
|
|||
len(block.Side.Uncles) != 0 ||
|
||||
block.Side.Difficulty.Cmp64(c.Consensus().MinimumDifficulty) != 0 ||
|
||||
block.Side.CumulativeDifficulty.Cmp64(c.Consensus().MinimumDifficulty) != 0 ||
|
||||
(block.ShareVersion() > ShareVersion_V1 && block.Side.CoinbasePrivateKeySeed == types.ZeroHash) {
|
||||
(block.ShareVersion() > ShareVersion_V1 && block.Side.CoinbasePrivateKeySeed != c.Consensus().Id()) {
|
||||
return nil, errors.New("genesis block has invalid parameters")
|
||||
}
|
||||
//this does not verify coinbase outputs, but that's fine
|
||||
|
|
Loading…
Reference in a new issue