util

package
v0.1.2-pre.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// AvgBlockTime is the expected duration between block in two consecutive epochs.
	// Defined at the Filecoin spec level.
	AvgBlockTime = time.Second * 30
)

Functions

func MustParseAddr

func MustParseAddr(str string) ma.Multiaddr

MustParseAddr returns a parsed Multiaddr, or panics if invalid.

func TCPAddrFromMultiAddr

func TCPAddrFromMultiAddr(maddr ma.Multiaddr) (string, error)

TCPAddrFromMultiAddr converts a multiaddress to a string representation of a tcp address.

Types

This section is empty.

Jump to

Keyboard shortcuts

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