Documentation ¶
Index ¶
- Constants
- func CalIdTarget(preCoinbase common.Address, preSignatureQr []byte, blockNumber *big.Int, ...) *big.Int
- func CalQrOrIdNext(base []byte, number *big.Int, preQr []byte) (common.Hash, error)
- func IsMiner(statedb *state.StateDB, miner common.Address, totalMinerNum *big.Int) bool
- func IsPunishedMiner(statedb *state.StateDB, miner common.Address, totalMinerNum *big.Int) bool
- func IsValidMiner(state *state.StateDB, miner common.Address, preCoinbase common.Address, ...) (bool, int64, int64)
- func ReadMinerAddress(statedb *state.StateDB, offset int64) []byte
- func ReadMinerNum(statedb *state.StateDB) *big.Int
Constants ¶
View Source
const ( MinerListContract = "0xfffffffffffffffffffffffffffffffff0000002" PreQrLength = 97 )
Variables ¶
This section is empty.
Functions ¶
func CalIdTarget ¶
func CalQrOrIdNext ¶
func IsMiner ¶
Return whether the miner is legal or not "legal" means the right to participate in mining
func IsPunishedMiner ¶
Return whether the miner is legal or not "legal" means the right to participate in mining
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.