chainerrors

package
v1.0.0-beta.37 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrARCGenericError = models.SPVError{Message: "ARC returned generic error", StatusCode: 500, Code: "error-arc-generic-error"}

ErrARCGenericError is when ARC returns generic error (according to documentation - status code: 409)

View Source
var ErrARCNotExtendedFormat = models.SPVError{Message: "ARC expects transaction in extended format", StatusCode: 500, Code: "error-arc-not-extended-format"}

ErrARCNotExtendedFormat is when ARC rejects transaction which is not in extended format

View Source
var ErrARCProblematicStatus = models.SPVError{Message: "ARC returned problematic status", StatusCode: 500, Code: "error-arc-problematic-status"}

ErrARCProblematicStatus is when ARC returns problematic status

View Source
var ErrARCUnauthorized = models.SPVError{Message: "ARC returned unauthorized", StatusCode: 500, Code: "error-arc-unauthorized"}

ErrARCUnauthorized is when ARC returns unauthorized

View Source
var ErrARCUnprocessable = models.SPVError{Message: "ARC cannot process provided transaction", StatusCode: 500, Code: "error-arc-unprocessable-tx"}

ErrARCUnprocessable is when ARC rejects because provided tx cannot be processed

View Source
var ErrARCUnreachable = models.SPVError{Message: "ARC cannot be requested", StatusCode: 500, Code: "error-arc-unreachable"}

ErrARCUnreachable is when ARC cannot be requested

View Source
var ErrARCUnsupportedStatusCode = models.SPVError{Message: "ARC returned unsupported status code", StatusCode: 500, Code: "error-arc-unsupported-status-code"}

ErrARCUnsupportedStatusCode is when ARC returns unsupported status code

View Source
var ErrARCWrongFee = models.SPVError{Message: "ARC rejected transaction because of wrong fee", StatusCode: 500, Code: "error-arc-wrong-fee"}

ErrARCWrongFee is when ARC rejects transaction because of wrong fee

View Source
var ErrBHSBadRequest = models.SPVError{Message: "BHS bad request", StatusCode: 500, Code: "error-bhs-bad-request"}

ErrBHSBadRequest is when BHS returns bad request

View Source
var ErrBHSBadURL = models.SPVError{Message: "cannot create Block Header Service url. Please check your configuration", StatusCode: 500, Code: "error-bhs-bad-url"}

ErrBHSBadURL is when creation of Block Header Service URL doesn't succeed. Probably a fault with the config file

View Source
var ErrBHSNoSuccessResponse = models.SPVError{Message: "Block Header Service request did not return a success response", StatusCode: 500, Code: "error-bhs-no-success-response"}

ErrBHSNoSuccessResponse is when Block Header Service request doesn't return a success response

View Source
var ErrBHSParsingResponse = models.SPVError{Message: "cannot parse Block Header Service response", StatusCode: 500, Code: "error-bhs-parse-response"}

ErrBHSParsingResponse is when creation of Block Header Service URL doesn't succeed. Probably a fault with the config file

View Source
var ErrBHSUnauthorized = models.SPVError{Message: "BHS returned unauthorized", StatusCode: 500, Code: "error-bhs-unauthorized"}

ErrBHSUnauthorized is when BHS returns unauthorized

View Source
var ErrBHSUnhealthy = models.SPVError{Message: "Block Header Service is unhealthy", StatusCode: 500, Code: "error-bhs-unhealthy"}

ErrBHSUnhealthy is when BHS Healthcheck fails

View Source
var ErrBHSUnreachable = models.SPVError{Message: "Block Header Service cannot be requested", StatusCode: 500, Code: "error-bhs-unreachable"}

ErrBHSUnreachable is when Block Header Service (BHS) doesn't respond to status check

View Source
var ErrEFConversion = models.SPVError{Message: "EF conversion failed", StatusCode: 500, Code: "error-ef-conversion"}

ErrEFConversion is when EF conversion fails

View Source
var ErrGetFeeUnit = models.SPVError{Message: "Fee unit cannot be retrieved", StatusCode: 500, Code: "error-get-fee-unit"}

ErrGetFeeUnit is when fee unit cannot be retrieved

View Source
var ErrGetTransactionsByTxsGetter = models.SPVError{Message: "error getting transactions during collecting transactions for Txs getter", StatusCode: 500, Code: "error-get-transactions-txs-getter"}

ErrGetTransactionsByTxsGetter is when error occurred during getting transactions

View Source
var ErrInvalidBatchSize = models.SPVError{Message: "batchSize must be 0 or a positive integer", StatusCode: 400, Code: "error-invalid-batch-size"}

ErrInvalidBatchSize is when Block Header Service request contains incorrect batch size query param

View Source
var ErrJunglebusFailure = models.SPVError{Message: "junglebus failed to return transaction", StatusCode: 500, Code: "error-junglebus-failure"}

ErrJunglebusFailure is when we can't get transaction from junglebus

View Source
var ErrJunglebusParseTransaction = models.SPVError{Message: "failed to parse transaction from junglebus response", StatusCode: 500, Code: "error-junglebus-parse-transaction"}

ErrJunglebusParseTransaction is when we can't parse transaction from junglebus response

View Source
var ErrJunglebusTxNotFound = models.SPVError{Message: "transaction not found in junglebus", StatusCode: 404, Code: "error-junglebus-tx-not-found"}

ErrJunglebusTxNotFound is when transaction is not found in junglebus

View Source
var ErrMerkleRootNotFound = models.SPVError{Message: "No block with provided merkleroot was found", StatusCode: 404, Code: "error-merkleroot-not-found"}

ErrMerkleRootNotFound is when Block Header Service cannot find requested merkleroot in lastEvaluatedKey query param

View Source
var ErrMerkleRootNotInLongestChain = models.SPVError{Message: "Provided merkleroot is not part of the longest chain", StatusCode: 409, Code: "error-merkleroot-not-part-of-longest-chain"}

ErrMerkleRootNotInLongestChain is when Block Header Service finds merkleroot in lastEvaluateKey query param but it is not in longest chain

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL