Documentation ¶
Index ¶
- func BytesToHex(a []byte) string
- func CalcDecentralCoefficient(smeshers map[string]int64) int64
- func CalcEpochCapacity(transactionsNum int64, epochDuration float64, maxTransactionPerSecond uint32) int64
- func CalculateLayerStartEndDate(genesisTime, layerNum, layerDuration uint32) (layerStartDate, layerEndDate uint32)
- func FindStringValue(obj *bson.D, key string) string
- func GetAsBool(rv bson.RawValue) bool
- func GetAsInt(rv bson.RawValue) int
- func GetAsInt32(rv bson.RawValue) int32
- func GetAsInt64(rv bson.RawValue) int64
- func GetAsString(rv bson.RawValue) string
- func GetAsUInt32(rv bson.RawValue) uint32
- func GetAsUInt64(rv bson.RawValue) uint64
- func Gini(smeshers map[string]int64) float64
- func NBytesToHex(a []byte, n int) string
- func PrintActivation(atx *pb.Activation)
- func PrintBlock(block *pb.Block)
- func PrintLayer(layer *pb.Layer)
- func PrintReward(reward *pb.Reward)
- func PrintTransaction(tx *pb.Transaction)
- func StringToBytes(s string) ([]byte, error)
- type CommitmentSizes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToHex ¶
func CalcDecentralCoefficient ¶ added in v0.0.11
CalcDecentralCoefficient calc decentral coefficient for epoch stat.
func CalcEpochCapacity ¶ added in v0.0.11
func CalcEpochCapacity(transactionsNum int64, epochDuration float64, maxTransactionPerSecond uint32) int64
CalcEpochCapacity calc capacity for epoch stat.
func CalculateLayerStartEndDate ¶ added in v0.0.11
func CalculateLayerStartEndDate(genesisTime, layerNum, layerDuration uint32) (layerStartDate, layerEndDate uint32)
CalculateLayerStartEndDate ...
func GetAsInt32 ¶
func GetAsInt64 ¶
func GetAsString ¶
func GetAsUInt32 ¶
func GetAsUInt64 ¶
func NBytesToHex ¶
func PrintActivation ¶
func PrintActivation(atx *pb.Activation)
func PrintBlock ¶
func PrintLayer ¶
func PrintReward ¶
func PrintTransaction ¶
func PrintTransaction(tx *pb.Transaction)
func StringToBytes ¶
Types ¶
type CommitmentSizes ¶
type CommitmentSizes []int64
func (CommitmentSizes) Len ¶
func (a CommitmentSizes) Len() int
func (CommitmentSizes) Less ¶
func (a CommitmentSizes) Less(i, j int) bool
func (CommitmentSizes) Swap ¶
func (a CommitmentSizes) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.