package
0.0.0-20220616152218-3da4c06c590a
Repository: https://github.com/astra-net/astra-network.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

NewProtocol creates a new sync protocol.

# Constants

GetBlockHashesAmountCap is the cap of GetBlockHashes request.
GetBlocksByHashesAmountCap is the cap of request of single GetBlocksByHashes request This number has an effect on maxMsgBytes as 20MB defined in github.com/astra-net/astra-network/p2p/stream/types.
GetBlocksByNumAmountCap is the cap of request of a single GetBlocksByNum request.

# Variables

MinVersion is the minimum version for matching function.
MyVersion is the version of sync protocol of the local node.
WithBlacklist instruct the request manager not to assign the request to the given streamID.
WithHighPriority instruct the request manager to do the request with high priority.
WithWhitelist instruct the request manager only to assign the request to the given streamID.

# Structs

No description provided by the author
No description provided by the author

# Type aliases

Option is the additional option to do requests.