types

package
v0.0.0-...-031fc53 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2020 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ShareValid is a shortcut for uint8(0)
	ShareValid = 0
	// ShareStale is a shortcut for uint8(1)
	ShareStale = 1
	// ShareInvalid is a shortcut for uint8(2)
	ShareInvalid = 2
)
View Source
const GethNode = 0

GethNode specifies NodeType for Geth (go-ethereum)

View Source
const OpenEthereumNode = 1

OpenEthereumNode specifies NodeType for OpenEthereum (formerly Parity Ethereum)

Variables

View Source
var NodeStringMap = map[NodeType]string{
	GethNode:         "Geth",
	OpenEthereumNode: "OpenEthereum",
}

NodeStringMap is a mapping that allows to quickly access the name of node

View Source
var ShareTypeNameMap = map[ShareType]string{
	0: "valid",
	1: "stale",
	2: "invalid",
}

ShareTypeNameMap has ShareType => <Share name (String)> mapping

Functions

This section is empty.

Types

type NodeType

type NodeType uint64

NodeType is a shortcut for uint64, and is used to store information about which node it is

type ShareType

type ShareType uint8

ShareType is a shortcut for uint8

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL