Versions in this module Expand all Collapse all v6 v6.0.0 Dec 21, 2021 Changes in this version + var ByzantiumBlockReward = big.NewInt(3e+18) + var ConstantinopleBlockReward = big.NewInt(2e+18) + var DynamicDifficultyCalculator = makeDifficultyCalculator + var ErrInvalidDumpMagic = errors.New("invalid dump magic") + var FrontierBlockReward = big.NewInt(5e+18) + var FrontierDifficultyCalulator = calcDifficultyFrontier + var HomesteadDifficultyCalulator = calcDifficultyHomestead + func CalcBaseBlockReward(config *params.UbqhashConfig, height *big.Int, isOrion bool) (*big.Int, *big.Int) + func CalcDifficulty(chain consensus.ChainHeaderReader, config *params.ChainConfig, time uint64, ...) *big.Int + func CalcDifficultyDigishieldV3(chain consensus.ChainHeaderReader, parentNumber, parentDiff *big.Int, ...) *big.Int + func CalcDifficultyFlux(chain consensus.ChainHeaderReader, ...) *big.Int + func CalcDifficultyFrontierU256(time uint64, parent *types.Header) *big.Int + func CalcDifficultyHomesteadU256(time uint64, parent *types.Header) *big.Int + func CalcUncleBlockReward(config *params.ChainConfig, blockHeight *big.Int, uncleHeight *big.Int, ...) *big.Int + func MakeCache(block uint64, dir string) + func MakeDataset(block uint64, dir string) + func MakeDifficultyCalculatorU256(bombDelay *big.Int) func(time uint64, parent *types.Header) *big.Int + func SeedHash(block uint64) []byte + type API struct + func (api *API) GetHashrate() uint64 + func (api *API) GetWork() ([4]string, error) + func (api *API) SubmitHashrate(rate hexutil.Uint64, id common.Hash) bool + func (api *API) SubmitWork(nonce types.BlockNonce, hash, digest common.Hash) bool + type Config struct + CacheDir string + CachesInMem int + CachesLockMmap bool + CachesOnDisk int + DatasetDir string + DatasetsInMem int + DatasetsLockMmap bool + DatasetsOnDisk int + Log log.Logger + NotifyFull bool + PowMode Mode + UIP1Epoch uint64 + type Mode uint + const ModeFake + const ModeFullFake + const ModeNormal + const ModeShared + const ModeTest + type Ubqhash struct + func New(config Config, notify []string, noverify bool) *Ubqhash + func NewFakeDelayer(delay time.Duration) *Ubqhash + func NewFakeFailer(fail uint64) *Ubqhash + func NewFaker() *Ubqhash + func NewFullFaker() *Ubqhash + func NewShared() *Ubqhash + func NewTester(notify []string, noverify bool) *Ubqhash + func (ubqhash *Ubqhash) APIs(chain consensus.ChainHeaderReader) []rpc.API + func (ubqhash *Ubqhash) Author(header *types.Header) (common.Address, error) + func (ubqhash *Ubqhash) CalcDifficulty(chain consensus.ChainHeaderReader, time uint64, parent *types.Header) *big.Int + func (ubqhash *Ubqhash) Close() error + func (ubqhash *Ubqhash) Finalize(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB, ...) + func (ubqhash *Ubqhash) FinalizeAndAssemble(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB, ...) (*types.Block, error) + func (ubqhash *Ubqhash) Hashrate() float64 + func (ubqhash *Ubqhash) Prepare(chain consensus.ChainHeaderReader, header *types.Header) error + func (ubqhash *Ubqhash) Seal(chain consensus.ChainHeaderReader, block *types.Block, ...) error + func (ubqhash *Ubqhash) SealHash(header *types.Header) (hash common.Hash) + func (ubqhash *Ubqhash) SetThreads(threads int) + func (ubqhash *Ubqhash) Threads() int + func (ubqhash *Ubqhash) VerifyHeader(chain consensus.ChainHeaderReader, header *types.Header, seal bool) error + func (ubqhash *Ubqhash) VerifyHeaders(chain consensus.ChainHeaderReader, headers []*types.Header, seals []bool) (chan<- struct{}, <-chan error) + func (ubqhash *Ubqhash) VerifySeal(chain consensus.ChainHeaderReader, header *types.Header) error + func (ubqhash *Ubqhash) VerifyUncles(chain consensus.ChainHeaderReader, block *types.Block) error Other modules containing this package github.com/ubiq/go-ubiq github.com/ubiq/go-ubiq/v3 github.com/ubiq/go-ubiq/v5 github.com/ubiq/go-ubiq/v7