pact

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2019 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// ProtocolVersion is the latest protocol version this package supports.
	ProtocolVersion = DPOSStartVersion

	// DPOSStartVersion is the protocol version which switch to DPOS protocol.
	DPOSStartVersion uint32 = 20000

	// EBIP001Version is the protocol version starts to support SPV protocol.
	EBIP001Version uint32 = 10001

	// MaxTxPerBlock is the maximux number of transactions allowed per block.
	MaxTxPerBlock = 10000

	// MaxBlocksPerMsg is the maximum number of blocks allowed per message.
	MaxBlocksPerMsg = 500

	// MaxTxPoolSize is the maximum size of txs allowed in transaction pool.
	MaxTxPoolSize = 20000000
)

Release version numbers

Variables

View Source
var MaxBlockSize uint32 = 8000000

MaxBlockSize is the maximum number of bytes allowed per block.

Functions

This section is empty.

Types

type ServiceFlag

type ServiceFlag uint64

ServiceFlag identifies services supported by a peer.

const (
	// SFNodeNetwork is a flag used to indicate a peer is a full node.
	SFNodeNetwork ServiceFlag = 1 << iota

	// SFTxFiltering is a flag used to indicate a peer supports transaction
	// filtering.
	SFTxFiltering

	// SFNodeBloom is a flag used to indicate a peer supports bloom filtering.
	SFNodeBloom
)

func (ServiceFlag) String

func (f ServiceFlag) String() string

String returns the ServiceFlag in human-readable form.

Jump to

Keyboard shortcuts

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