pact

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2019 License: MIT Imports: 2 Imported by: 0

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