Documentation ¶
Index ¶
Constants ¶
View Source
const DposContractAddress = "0x00000000000000000000000000000000000000fe"
Variables ¶
This section is empty.
Functions ¶
func FormatFloat ¶
func GetYieldIntervalEnd ¶
func MakeThreadPool ¶
func MakeThreadPool() pool.Pool
isn't creating threads, but limiting goroutines count. Mostly used for RPC and db related tasks
func ParseStringToBigInt ¶
Types ¶
type ChainConfig ¶
type ChainConfig struct { CommitteeSize *big.Int BlocksPerYear *big.Int YieldPercentage *big.Int DagProposersReward *big.Int MaxBlockAuthorReward *big.Int }
func DefaultChainConfig ¶
func DefaultChainConfig() *ChainConfig
type Config ¶
type Config struct { Chain *ChainConfig TotalYieldSavingInterval uint64 ValidatorsYieldSavingInterval uint64 }
func DefaultConfig ¶
func DefaultConfig() *Config
type TaskWithResult ¶
type TaskWithResult[P, R any] struct { // contains filtered or unexported fields }
func MakeTaskWithResult ¶
func MakeTaskWithResult[P, R any](f func(P) (R, error), params P, result *R, err *error) *TaskWithResult[P, R]
func (*TaskWithResult[P, R]) Run ¶
func (t *TaskWithResult[P, R]) Run()
Click to show internal directories.
Click to hide internal directories.