Documentation ¶
Index ¶
- Variables
- func BigIntMulBigRat(bigInt *big.Int, bigRat *big.Rat) *big.Int
- func BytesToUint32(byte []byte) uint32
- func DeepCopy(dst, src interface{}) error
- func GetIPV4Addr() (string, error)
- func Has0xPrefix(input string) bool
- func IntLeftMostBit(v uint32) uint32
- func IsLocalIP(ip string) bool
- func IsNil(data interface{}) bool
- func IsP2(shardSize uint32) bool
- func MasksHaveOverlap(m1, m2 uint32) bool
- func RemoveDuplicate(data []uint64) []uint64
- func Uint32ToBytes(n uint32) []byte
- type ConstMinorBlockRewardCalculator
Constants ¶
This section is empty.
Variables ¶
View Source
var (
EmptyHash = ethCommon.Hash{}
)
Functions ¶
func BytesToUint32 ¶
func GetIPV4Addr ¶
func Has0xPrefix ¶
func MasksHaveOverlap ¶
0b101, 0b11 -> True 0b101, 0b10 -> False
func RemoveDuplicate ¶
Types ¶
type ConstMinorBlockRewardCalculator ¶
type ConstMinorBlockRewardCalculator struct { }
ConstMinorBlockRewardCalculator blockReward struct
func (*ConstMinorBlockRewardCalculator) GetBlockReward ¶
func (c *ConstMinorBlockRewardCalculator) GetBlockReward() *big.Int
GetBlockReward getBlockReward
Click to show internal directories.
Click to hide internal directories.