pact

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

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

	// CRProposalVersion is the protocol version which switch to CR proposal protocol.
	CRProposalVersion uint32 = 80000

	// 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

	// 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 (
	// MaxBlockContextSize is the maximum number of bytes allowed per block context.
	MaxBlockContextSize uint32 = 8000000

	// MaxBlockHeaderSize is the maximum number of bytes allowed per block header.
	MaxBlockHeaderSize uint32 = 1000000

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

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