common

package
v0.1.8-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2019 License: GPL-3.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeyBlock

func KeyBlock(hash string, peer core.Engine) []interface{}

KeyBlock returns a key for storing the hash of a block received from a peer

func KeyBlock2

func KeyBlock2(hash string, peerID string) []interface{}

KeyBlock2 is like KeyBlock except it accepts a peer id

func KeyOrphanBlock

func KeyOrphanBlock(blockHash util.Hash,
	peer core.Engine) []interface{}

KeyOrphanBlock returns a key for storing the hash of an orphan block received from a peer

func KeyTx

func KeyTx(tx types.Transaction, peer core.Engine) []interface{}

KeyTx returns a key for storing the hash of a transaction received from a peer

Types

This section is empty.

Jump to

Keyboard shortcuts

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