Versions in this module Expand all Collapse all v0 v0.0.1 Dec 15, 2023 Changes in this version + var ErrBadCoinbasePayloadLen = newRuleError("ErrBadCoinbasePayloadLen") + var ErrBadCoinbaseTransaction = newRuleError("ErrBadCoinbaseTransaction") + var ErrBadMerkleRoot = newRuleError("ErrBadMerkleRoot") + var ErrBadPruningPointUTXOSet = newRuleError("ErrBadPruningPointUTXOSet") + var ErrBadTxOutValue = newRuleError("ErrBadTxOutValue") + var ErrBadUTXOCommitment = newRuleError("ErrBadUTXOCommitment") + var ErrBlockMassTooHigh = newRuleError("ErrBlockMassTooHigh") + var ErrBlockVersionIsUnknown = newRuleError("ErrBlockVersionIsUnknown") + var ErrBlockVersionTooOld = newRuleError("ErrBlockVersionTooOld") + var ErrChainedTransactions = newRuleError("ErrChainedTransactions") + var ErrCoinbaseTooLongScriptPublicKey = newRuleError("ErrCoinbaseTooLongScriptPublicKey") + var ErrCoinbaseTooManyOutputs = newRuleError("ErrCoinbaseTooManyOutputs") + var ErrCoinbaseWithInputs = newRuleError("ErrCoinbaseWithInputs") + var ErrDoubleSpendInSameBlock = newRuleError("ErrDoubleSpendInSameBlock") + var ErrDuplicateBlock = newRuleError("ErrDuplicateBlock") + var ErrDuplicateTx = newRuleError("ErrDuplicateTx") + var ErrDuplicateTxInputs = newRuleError("ErrDuplicateTxInputs") + var ErrFinalityPointTimeTooOld = newRuleError("ErrFinalityPointTimeTooOld") + var ErrFirstTxNotCoinbase = newRuleError("ErrFirstTxNotCoinbase") + var ErrGenesisOnInitializedConsensus = newRuleError("ErrGenesisOnInitializedConsensus") + var ErrGetVirtualUTXOsWrongVirtualParents = newRuleError("ErrGetVirtualUTXOsWrongVirtualParents") + var ErrImmatureSpend = newRuleError("ErrImmatureSpend") + var ErrInvalidAncestorBlock = newRuleError("ErrInvalidAncestorBlock") + var ErrInvalidGas = newRuleError("ErrInvalidGas") + var ErrInvalidParentsRelation = newRuleError("ErrInvalidParentsRelation") + var ErrInvalidPayload = newRuleError("ErrInvalidPayload") + var ErrInvalidPoW = newRuleError("ErrInvalidPoW") + var ErrInvalidPruningPointsChain = newRuleError("ErrInvalidPruningPointsChain") + var ErrKnownInvalid = newRuleError("ErrKnownInvalid") + var ErrMalformedUTXO = newRuleError("ErrMalformedUTXO") + var ErrMultipleCoinbases = newRuleError("ErrMultipleCoinbases") + var ErrNegativeTarget = newRuleError("ErrNegativeTarget") + var ErrNoParents = newRuleError("ErrNoParents") + var ErrNoTransactions = newRuleError("ErrNoTransactions") + var ErrNoTxInputs = newRuleError("ErrNoTxInputs") + var ErrPrunedBlock = newRuleError("ErrPrunedBlock") + var ErrPruningPointSelectedChildDisqualifiedFromChain = newRuleError("ErrPruningPointSelectedChildDisqualifiedFromChain") + var ErrPruningPointViolation = newRuleError("ErrPruningPointViolation") + var ErrPruningProofEmpty = newRuleError("ErrPruningProofEmpty") + var ErrPruningProofHeaderWithNoKnownParents = newRuleError("ErrPruningProofHeaderWithNoKnownParents") + var ErrPruningProofInsufficientBlueWork = newRuleError("ErrPruningProofInsufficientBlueWork") + var ErrPruningProofMissesBlocksBelowPruningPoint = newRuleError("ErrPruningProofMissesBlocksBelowPruningPoint") + var ErrPruningProofMissingBlockAtDepthMFromNextLevel = newRuleError("ErrPruningProofMissingBlockAtDepthMFromNextLevel") + var ErrPruningProofMissingBlockLevels = newRuleError("ErrPruningProofMissingBlockLevels") + var ErrPruningProofSelectedTipIsNotThePruningPoint = newRuleError("ErrPruningProofSelectedTipIsNotThePruningPoint") + var ErrPruningProofSelectedTipNotParentOfPruningPoint = newRuleError("ErrPruningProofSelectedTipNotParentOfPruningPoint") + var ErrPruningProofWrongBlockLevel = newRuleError("ErrPruningProofWrongBlockLevel") + var ErrScriptMalformed = newRuleError("ErrScriptMalformed") + var ErrScriptValidation = newRuleError("ErrScriptValidation") + var ErrSpendTooHigh = newRuleError("ErrSpendTooHigh") + var ErrSubnetworkRegistry = newRuleError("ErrSubnetworkRegistry") + var ErrSubnetworksDisabled = newRuleError("ErrSubnetworksDisabled") + var ErrSuggestedPruningViolatesFinality = newRuleError("ErrSuggestedPruningViolatesFinality") + var ErrTargetTooHigh = newRuleError("ErrTargetTooHigh") + var ErrTimeTooMuchInTheFuture = newRuleError("ErrTimeTooMuchInTheFuture") + var ErrTimeTooOld = newRuleError("ErrTimeTooOld") + var ErrTooManyParents = newRuleError("ErrTooManyParents") + var ErrTransactionVersionIsUnknown = newRuleError("ErrTransactionVersionIsUnknown") + var ErrTransactionsNotSorted = newRuleError("ErrTransactionsNotSorted") + var ErrTxOutValueZero = newRuleError("ErrTxOutValueZero") + var ErrUnexpectedBlueWork = newRuleError("ErrUnexpectedBlueWork") + var ErrUnexpectedCoinbaseBlueScore = newRuleError("ErrUnexpectedCoinbaseBlueScore") + var ErrUnexpectedDAAScore = newRuleError("ErrUnexpectedDAAScore") + var ErrUnexpectedDifficulty = newRuleError("ErrUnexpectedDifficulty") + var ErrUnexpectedFinalityPoint = newRuleError("ErrUnexpectedFinalityPoint") + var ErrUnexpectedHeaderBlueScore = newRuleError("ErrUnexpectedHeaderBlueScore") + var ErrUnexpectedHeaderPruningPoint = newRuleError("ErrUnexpectedHeaderPruningPoint") + var ErrUnexpectedParents = newRuleError("ErrUnexpectedParents") + var ErrUnexpectedPruningPoint = newRuleError("ErrUnexpectedPruningPoint") + var ErrUnfinalizedTx = newRuleError("ErrUnfinalizedTx") + var ErrViolatingBoundedMergeDepth = newRuleError("ErrViolatingBoundedMergeDepth") + var ErrViolatingMergeLimit = newRuleError("ErrViolatingMergeLimit") + var ErrVirtualGenesisParent = newRuleError("ErrVirtualGenesisParent") + var ErrWrongBlockVersion = newRuleError("ErrWrongBlockVersion") + var ErrWrongCoinbaseSubsidy = newRuleError("ErrWrongCoinbaseSubsidy") + var ErrWrongPruningPointHash = newRuleError("ErrWrongPruningPointHash") + var ErrWrongSigOpCount = newRuleError("ErrWrongSigOpCount") + func NewErrInvalidTransactionsInNewBlock(invalidTransactions []InvalidTransaction) error + func NewErrMissingParents(missingParentHashes []*externalapi.DomainHash) error + func NewErrMissingTxOut(missingOutpoints []*externalapi.DomainOutpoint) error + type ErrInvalidTransactionsInNewBlock struct + InvalidTransactions []InvalidTransaction + func (e ErrInvalidTransactionsInNewBlock) Error() string + type ErrMissingParents struct + MissingParentHashes []*externalapi.DomainHash + func (e ErrMissingParents) Error() string + type ErrMissingTxOut struct + MissingOutpoints []*externalapi.DomainOutpoint + func (e ErrMissingTxOut) Error() string + type InvalidTransaction struct + Error error + Transaction *externalapi.DomainTransaction + func (invalid InvalidTransaction) String() string + type RuleError struct + func (e RuleError) Cause() error + func (e RuleError) Error() string + func (e RuleError) Unwrap() error