protocol

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a struct which holds a list of protocols.

func New

func New(protocolVersions []protocol.Version, bcInfoProvider blockchainInfoProvider) *Client

New initializes the protocol parameters from file

func (*Client) Current

func (c *Client) Current() (protocol.Version, error)

Current returns the latest version of protocol

func (*Client) Get added in v0.1.4

func (c *Client) Get(transactionTime uint64) (protocol.Version, error)

Get gets protocol version based on blockchain(transaction) time

Jump to

Keyboard shortcuts

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