Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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)
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
var ErrARCProblematicStatus = models.SPVError{Message: "ARC returned problematic status", StatusCode: 500, Code: "error-arc-problematic-status"}
ErrARCProblematicStatus is when ARC returns problematic status
ErrARCUnauthorized is when ARC returns unauthorized
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
var ErrARCUnreachable = models.SPVError{Message: "ARC cannot be requested", StatusCode: 500, Code: "error-arc-unreachable"}
ErrARCUnreachable is when ARC cannot be requested
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
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
var ErrBHSBadRequest = models.SPVError{Message: "BHS bad request", StatusCode: 500, Code: "error-bhs-bad-request"}
ErrBHSBadRequest is when BHS returns bad request
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
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
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
ErrBHSUnauthorized is when BHS returns unauthorized
var ErrBHSUnhealthy = models.SPVError{Message: "Block Header Service is unhealthy", StatusCode: 500, Code: "error-bhs-unhealthy"}
ErrBHSUnhealthy is when BHS Healthcheck fails
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
var ErrEFConversion = models.SPVError{Message: "EF conversion failed", StatusCode: 500, Code: "error-ef-conversion"}
ErrEFConversion is when EF conversion fails
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
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
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
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
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
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
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
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.