Documentation ¶
Index ¶
- Variables
- func ClearDevDB(dataDir string, logger log.Logger) error
- func GenerateTopic(signature string) []libcommon.Hash
- func HexToInt(hexStr string) uint64
- func NamespaceAndSubMethodFromMethod(method string) (string, string, error)
- func RandomInt(max int) int
- func RandomNumberInRange(min, max uint64) (uint64, error)
- func UniqueIDFromEnode(enode string) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidEnodeString = errors.New("invalid enode string")
Functions ¶
func ClearDevDB ¶
ClearDevDB cleans up the dev folder used for the operations
func GenerateTopic ¶
func NamespaceAndSubMethodFromMethod ¶
NamespaceAndSubMethodFromMethod splits a parent method into namespace and the actual method
func RandomNumberInRange ¶
RandomNumberInRange returns a random number between min and max NOT inclusive
func UniqueIDFromEnode ¶
UniqueIDFromEnode returns the unique ID from a node's enode, removing the `?discport=0` part
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.