constants.go 580 B

12345678910111213141516
  1. package istanbulcommon
  2. import (
  3. "math/big"
  4. "github.com/ethereum/go-ethereum/common/hexutil"
  5. "github.com/ethereum/go-ethereum/core/types"
  6. )
  7. var (
  8. DefaultDifficulty = big.NewInt(1)
  9. NilUncleHash = types.CalcUncleHash(nil) // Always Keccak256(RLP([])) as uncles are meaningless outside of PoW.
  10. EmptyBlockNonce = types.BlockNonce{}
  11. NonceAuthVote = hexutil.MustDecode("0xffffffffffffffff") // Magic nonce number to vote on adding a new validator
  12. NonceDropVote = hexutil.MustDecode("0x0000000000000000") // Magic nonce number to vote on removing a validator.
  13. )