dominant-strategies / go-quai

Official Go Implementation of the Quai Network
GNU General Public License v3.0
2.36k stars 456 forks source link

[Core] Block hash is missing key parameters #1891

Closed Djadih closed 1 week ago

Djadih commented 2 weeks ago

Example:


func DefaultOrchardGenesisBlock(consensusEngine string) *Genesis {
    if consensusEngine == "blake3" {
        return &Genesis{
            Config:     params.Blake3PowOrchardChainConfig,
            Nonce:      66,
            ExtraData:  hexutil.MustDecode("0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fc"),
            GasLimit:   5000000,
            Difficulty: big.NewInt(40000000),
        }
    }
    return &Genesis{
        Config:     params.ProgpowOrchardChainConfig,
        Nonce:      0,
        ExtraData:  hexutil.MustDecode("0x3535353535353535353535353535353535353535353535353535353535353536"),
        GasLimit:   5000000,
        Difficulty: big.NewInt(300000000),
    }
}```

Currently:
Nonce, ExtraData, and GasLimit all don't affect the genesis hash