BatchedCFiltersV2Version is the protocol version which adds support for the batched getcfsv2 and cfiltersv2 messages.
CFilterV2Version is the protocol version which adds the getcfilterv2 and cfiltverv2 messages.
Commands used in message headers which describe the type of message.
Commands used in message headers which describe the type of message.
Deprecated: This command is no longer valid as of protocol version CFilterV2Version.
Deprecated: This command is no longer valid as of protocol version CFilterV2Version.
Commands used in message headers which describe the type of message.
Commands used in message headers which describe the type of message.
Deprecated: This command is no longer valid as of protocol version CFilterV2Version.
Commands used in message headers which describe the type of message.
Commands used in message headers which describe the type of message.
Commands used in message headers which describe the type of message.
Deprecated: This command is no longer valid as of protocol version CFilterV2Version.
Deprecated: This command is no longer valid as of protocol version CFilterV2Version.
Commands used in message headers which describe the type of message.
Commands used in message headers which describe the type of message.
Deprecated: This command is no longer valid as of protocol version CFilterV2Version.
Commands used in message headers which describe the type of message.
Commands used in message headers which describe the type of message.
Commands used in message headers which describe the type of message.
Commands used in message headers which describe the type of message.
Commands used in message headers which describe the type of message.
Commands used in message headers which describe the type of message.
Commands used in message headers which describe the type of message.
Commands used in message headers which describe the type of message.
Commands used in message headers which describe the type of message.
Commands used in message headers which describe the type of message.
Commands used in message headers which describe the type of message.
Commands used in message headers which describe the type of message.
Commands used in message headers which describe the type of message.
Commands used in message headers which describe the type of message.
Commands used in message headers which describe the type of message.
Commands used in message headers which describe the type of message.
Commands used in message headers which describe the type of message.
Commands used in message headers which describe the type of message.
Commands used in message headers which describe the type of message.
Commands used in message headers which describe the type of message.
Commands used in message headers which describe the type of message.
Commands used in message headers which describe the type of message.
Commands used in message headers which describe the type of message.
Commands used in message headers which describe the type of message.
Commands used in message headers which describe the type of message.
CommandSize is the fixed size of all commands in the common Decred message header.
DefaultPkScriptVersion is the default pkScript version, referring to extended Decred script.
DefaultUserAgent for wire in the stack.
ErrCmdTooLong is returned when a command exceeds the maximum command size allowed.
ErrFilterTooLarge is returned when a committed filter exceeds the maximum size allowed.
ErrHeaderContainsTxs is returned when a header's transactions count is greater than zero.
ErrInitialStateTypeTooLong is returned when an individual initial state type is longer than allowed by the protocol.
ErrInvalidMsg is returned for an invalid message structure.
ErrMalformedCmd is returned when a malformed command is received.
ErrMalformedStrictString is returned when a string that has strict formatting requirements does not conform to the requirements.
ErrMismatchedWitnessCount returned when a transaction has unequal witness and prefix txin quantities.
ErrMixPairReqScriptClassTooLong is returned when a mixing script class type string is longer than allowed by the protocol.
ErrMsgInvalidForPVer is returned when a message is invalid for the expected protocol version.
ErrNonCanonicalVarInt is returned when a variable length integer is not canonically encoded.
ErrPayloadChecksum is returned when a message with an invalid checksum is received.
ErrPayloadTooLarge is returned when a payload exceeds the maximum payload size allowed.
ErrReadInPrefixFromWitnessOnlyTx is returned when attempting to read a transaction input prefix from a witness only transaction.
ErrTooManyAddrs is returned when an address list exceeds the maximum allowed.
ErrTooManyBlocks is returned when the number of block hashes exceed the maximum allowed.
ErrTooManyCFilters is returned when the number of committed filters exceeds the maximum allowed in a batch.
ErrTooManyFilterHeaders is returned when the number of committed filter headers exceed the maximum allowed.
ErrTooManyFilterTypes is returned when the number of filter types exceeds the maximum allowed.
ErrTooManyHeaders is returned when the number of block headers exceed the maximum allowed.
ErrTooManyInitialStateTypes is returned when the number of initial state types is larger than the maximum allowed by the protocol.
ErrTooManyLocators is returned when the number of block locators exceed the maximum allowed.
ErrTooManyManyMixPairReqs is returned when the number of mix pair request message hashes exceeds the maximum allowed.
ErrTooManyMixPairReqUTXOs is returned when a MixPairReq message contains more UTXOs than allowed by the protocol.
ErrTooManyPrevMixMsgs is returned when too many previous messages of a mix run are referenced by a message.
ErrTooManyProofs is returned when the number of proof hashes exceeds the maximum allowed.
ErrTooManyTSpends is returned when the number of tspend hashes exceeds the maximum allowed.
ErrTooManyTxs is returned when a the number of transactions exceed the maximum allowed.
ErrTooManyVectors is returned when the number of inventory vectors exceed the maximum allowed.
ErrTooManyVotes is returned when the number of vote hashes exceed the maximum allowed.
ErrUnknownCmd is returned when an unknown command is received.
ErrUnknownTxType is returned when a transaction type is unknown.
ErrUserAgentTooLong is returned when the provided user agent exceeds the maximum allowed.
ErrVarBytesTooLong is returned when a variable-length byte slice exceeds the maximum message size allowed.
ErrVarStringTooLong is returned when a variable string exceeds the maximum message size allowed.
ErrWrongNetwork is returned when a message intended for a different network is received.
FeeFilterVersion is the protocol version which added a new feefilter message.
GCSFilterExtended is the extended filter type.
GCSFilterRegular is the regular filter type.
InitialProcotolVersion is the initial protocol version for the network.
InitStateHeadBlocks is the init state type used to request head blocks for mining.
InitStateHeadBlockVotes is the init state type used to request votes for the head blocks for mining.
InitStateTSpends is the init state type used to request tpends for voting.
InitStateVersion is the protocol version which adds the initstate and getinitstate messages.
These constants define the various supported inventory vector types.
These constants define the various supported inventory vector types.
These constants define the various supported inventory vector types.
These constants define the various supported inventory vector types.
These constants define the various supported inventory vector types.
MainNet represents the main Decred network.
MaxAddrPerMsg is the maximum number of addresses that can be in a single bitcoin addr message (MsgAddr).
MaxBlockHeaderPayload is the maximum number of bytes a block header can be.
MaxBlockHeadersPerMsg is the maximum number of block headers that can be in a single Decred headers message.
MaxBlockLocatorsPerMsg is the maximum number of block locator hashes allowed per message.
1.25MB.
Not actually 1MB which would be 1024 * 1024.
MaxBlockSizeVersion is the protocol version which increased the original blocksize.
MaxBlocksPerMsg is the maximum number of blocks allowed per message.
MaxCFHeaderPayload is the maximum byte size of a committed filter header.
MaxCFHeadersPerMsg is the maximum number of committed filter headers that can be in a single cfheaders message.
MaxCFilterDataSize is the maximum byte size of a committed filter.
MaxCFiltersV2PerBatch is the maximum number of committed filters that may be sent in a cfiltersv2 message.
MaxFilterTypesPerMsg is the maximum number of filter types allowed per message.
MaxHeaderProofHashes is the maximum number of header commitment inclusion proof hashes that can be in a single message.
MaxInitStateTypeLen is the maximum length allowable for an individual requested type.
MaxInitStateTypes is the maximum number of individual types stored in a getinitialstate message.
MaxInvPerMsg is the maximum number of inventory vectors that can be in a single Decred inv message.
MaxISBlocksAtHeadPerMsg is the maximum number of block hashes allowed per message.
MaxISTSpendsAtHeadPerMsg is the maximum number of tspends at head per message.
8 * 5.
32MB.
MaxMixFieldValLen is the maximum number of bytes allowed to represent a value in the slot reservation mix bounded by the field prime.
MaxMixMcount is the maximum number of mixed messages that are allowed in a single mix.
MaxMixPairReqScriptClassLen is the maximum length allowable for a MsgMixPairReq script class.
MaxMixPairReqUTXOPubKeyLen is the maximum length allowed for the pubkey of a UTXO ownership proof.
MaxMixPairReqUTXOs is the maximum number of unspent transaction outputs that may be contributed in a single mixpairreq message.
txscript.MaxScriptSize.
MaxMixPairReqUTXOSignatureLen is the maximum length allowed for the signature of a UTXO ownership proof.
MaxMixPeers is the maximum number of peers allowed together in a single mix.
MaxMSBlocksAtHeadPerMsg is the maximum number of block hashes allowed per message.
8 * 5.
MaxPrevOutIndex is the maximum index the index field of a previous outpoint can be.
MaxTxInSequenceNum is the maximum sequence number the sequence field of a transaction input can be.
MaxUserAgentLen is the maximum allowed length for the user agent field in a version message (MsgVersion).
MaxVarIntPayload is the maximum payload size for a variable length integer.
MessageHeaderSize is the number of bytes in a Decred message header.
No description provided by the author
MixVersion is the protocol version which adds peer-to-peer mixing.
NodeBloomVersion is the protocol version which added the SFNodeBloom service flag (unused).
NodeCFVersion is the protocol version which adds the SFNodeCF service flag and the cfheaders, cfilter, cftypes, getcfheaders, getcfilter and getcftypes messages.
NoExpiryValue is the value of expiry that indicates the transaction has no expiry.
NullBlockHeight is the null value for an input witness.
NullBlockIndex is the null transaction index in a block for an input witness.
NullValueIn is a null value for an input witness.
ProtocolVersion is the latest protocol version this package supports.
RegNet represents the regression test network.
RegTest represents the regression test network.
These constants define the various supported reject codes.
These constants define the various supported reject codes.
These constants define the various supported reject codes.
These constants define the various supported reject codes.
These constants define the various supported reject codes.
These constants define the various supported reject codes.
These constants define the various supported reject codes.
These constants define the various supported reject codes.
RemoveRejectVersion is the protocol version which removes support for the reject message.
SendHeadersVersion is the protocol version which added a new sendheaders message.
SequenceLockTimeDisabled is a flag that if set on a transaction input's sequence number, the sequence number will not be interpreted as a relative locktime.
SequenceLockTimeGranularity is the defined time based granularity for seconds-based relative time locks.
SequenceLockTimeIsSeconds is a flag that if set on a transaction input's sequence number, the relative locktime has units of 512 seconds.
SequenceLockTimeMask is a mask that extracts the relative locktime when masked against the transaction input sequence number.
SFNodeBloom is a flag used to indicate a peer supports bloom filtering.
SFNodeCF is a flag used to indicate a peer supports v1 gcs filters (CFs).
SFNodeNetwork is a flag used to indicate a peer is a full node.
SimNet represents the simulation test network.
TestNet3 represents the 3rd test network.
TxSerializeFull indicates a transaction be serialized with the prefix and all witness data.
TxSerializeNoWitness indicates a transaction be serialized with only the prefix.
TxSerializeOnlyWitness indicates a transaction be serialized with only the witness data.
TxTreeRegular is the value for a normal transaction tree for a transaction's location in a block.
TxTreeStake is the value for a stake transaction tree for a transaction's location in a block.
TxTreeUnknown is the value returned for a transaction tree that is unknown.
TxVersion is the initial transaction version.
TxVersionSeqLock is the transaction version that enables sequence locks.
TxVersionTreasury is the transaction version that enables the decentralized treasury features.