Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCheckOutOfSyncTimeout

func GetCheckOutOfSyncTimeout() time.Duration

func GetDownloadTxTimeout

func GetDownloadTxTimeout() time.Duration

func GetFinalizationVoteThreshold

func GetFinalizationVoteThreshold() float64

func GetGossipTimeout

func GetGossipTimeout() time.Duration

func GetMaxDepthDiff

func GetMaxDepthDiff() uint64

func GetMaxDownloadDepthDiff

func GetMaxDownloadDepthDiff() uint64

func GetPruningLimit

func GetPruningLimit() uint8

func GetQueryTimeout

func GetQueryTimeout() time.Duration

func GetRoundDepthMajorityWeight

func GetRoundDepthMajorityWeight() float64

func GetSecret

func GetSecret() string

func GetSnowballBeta

func GetSnowballBeta() int

func GetSnowballK

func GetSnowballK() int

func GetStakeMajorityWeight

func GetStakeMajorityWeight() float64

func GetSyncChunkSize

func GetSyncChunkSize() int

func GetSyncIfRoundsDifferBy

func GetSyncIfRoundsDifferBy() uint64

func GetSyncVoteThreshold

func GetSyncVoteThreshold() float64

func GetTransactionsNumMajorityWeight

func GetTransactionsNumMajorityWeight() float64

func Stringify

func Stringify() string

func Update

func Update(options ...Option)

Types

type Option

type Option func(*config)

func WithCheckOutOfSyncTimeout

func WithCheckOutOfSyncTimeout(ct time.Duration) Option

func WithDownloadTxTimeout

func WithDownloadTxTimeout(dt time.Duration) Option

func WithFinalizationVoteThreshold

func WithFinalizationVoteThreshold(sa float64) Option

func WithGossipTimeout

func WithGossipTimeout(gt time.Duration) Option

func WithMaxDepthDiff

func WithMaxDepthDiff(dd uint64) Option

func WithMaxDownloadDepthDiff

func WithMaxDownloadDepthDiff(ddd uint64) Option

func WithPruningLimit

func WithPruningLimit(pl uint8) Option

func WithQueryTimeout

func WithQueryTimeout(qt time.Duration) Option

func WithRoundDepthMajorityWeight

func WithRoundDepthMajorityWeight(sa float64) Option

func WithSecret

func WithSecret(s string) Option

func WithSnowballBeta

func WithSnowballBeta(sb int) Option

func WithSnowballK

func WithSnowballK(sk int) Option

func WithStakeMajorityWeight

func WithStakeMajorityWeight(sa float64) Option

func WithSyncChunkSize

func WithSyncChunkSize(cs int) Option

func WithSyncIfRoundsDifferBy

func WithSyncIfRoundsDifferBy(rdb uint64) Option

func WithSyncVoteThreshold

func WithSyncVoteThreshold(sa float64) Option

func WithTransactionsNumMajorityWeight

func WithTransactionsNumMajorityWeight(sa float64) Option

Source Files