Versions in this module Expand all Collapse all v0 v0.7.2 Dec 13, 2021 Changes in this version + var BadgerStorageErrs = []error + var BalanceStorageErrs = []error + var BlockStorageErrs = []error + var BroadcastStorageErrs = []error + var CoinStorageErrs = []error + var CompressorErrs = []error + var ErrAccountCoinQueryFailed = errors.New("unable to query coins for account") + var ErrAccountCoinStoreFailed = errors.New("unable to store account coin") + var ErrAccountIdentifierQueryFailed = errors.New("unable to query account identifier") + var ErrAccountMissing = errors.New("account missing") + var ErrAddrCheckIfExistsFailed = errors.New("unable to check if address exists") + var ErrAddrExists = errors.New("address already exists") + var ErrAddrGetFailed = errors.New("unable to get address") + var ErrAddrImportFailed = errors.New("unable to import prefunded account") + var ErrAddrNotFound = errors.New("address not found") + var ErrAddrsGetAllFailed = errors.New("unable to get addresses") + var ErrBalancePruned = errors.New("balance pruned") + var ErrBlockCopyFailed = errors.New("unable to copy block") + var ErrBlockDataDecodeFailed = errors.New("unable to decode block data for transaction") + var ErrBlockDeleteFailed = errors.New("unable to delete block") + var ErrBlockEncodeFailed = errors.New("unable to encode block") + var ErrBlockGetFailed = errors.New("unable to get block") + var ErrBlockIdentifierUpdateFailed = errors.New("unable to update head block identifier") + var ErrBlockIndexDeleteFailed = errors.New("unable to delete block index") + var ErrBlockIndexStoreFailed = errors.New("unable to store block index") + var ErrBlockNil = errors.New("block nil") + var ErrBlockNotFound = errors.New("block not found") + var ErrBlockStoreFailed = errors.New("unable to store block") + var ErrBroadcastAlreadyExists = errors.New("already broadcasting transaction") + var ErrBroadcastAtTipFailed = errors.New("unable to determine if at tip") + var ErrBroadcastCommitDeleteFailed = errors.New("unable to commit broadcast delete") + var ErrBroadcastCommitUpdateFailed = errors.New("unable to commit broadcast update") + var ErrBroadcastDBGetFailed = errors.New("unable to determine if already broadcasting transaction") + var ErrBroadcastDecodeFailed = errors.New("unable to decode broadcast") + var ErrBroadcastDeleteConfirmedTxFailed = errors.New("unable to delete confirmed broadcast") + var ErrBroadcastDeleteFailed = errors.New("unable to delete broadcast") + var ErrBroadcastEncodeFailed = errors.New("unable to encode broadcast") + var ErrBroadcastEncodeUpdateFailed = errors.New("unable to encode updated broadcast") + var ErrBroadcastFailed = errors.New("unable to broadcast pending transactions") + var ErrBroadcastFindTxFailed = errors.New("unable to determine if transaction was seen") + var ErrBroadcastGetAllFailed = errors.New("unable to get all broadcasts") + var ErrBroadcastGetCurrentBlockIdentifierFailed = errors.New("unable to get current block identifier") + var ErrBroadcastHandleFailureUnsuccessful = errors.New("unable to handle broadcast failure") + var ErrBroadcastIdentifierMismatch = errors.New("unexpected transaction hash returned by broadcast") + var ErrBroadcastInvokeBlockHandlersFailed = errors.New("unable to handle block") + var ErrBroadcastPerformFailed = errors.New("unable to perform broadcast") + var ErrBroadcastScanFailed = errors.New("unable to scan for all broadcasts") + var ErrBroadcastSetFailed = errors.New("unable to set broadcast") + var ErrBroadcastTxConfirmed = errors.New("unable to handle confirmed transaction") + var ErrBroadcastTxStale = errors.New("unable to handle stale transaction") + var ErrBroadcastUpdateFailed = errors.New("unable to update broadcast") + var ErrBufferWriteFailed = errors.New("unable to write to buffer") + var ErrCannotAccessPrunedData = errors.New("cannot access pruned data") + var ErrCannotPruneTransaction = errors.New("cannot prune transaction") + var ErrCannotRemoveBackwardRelation = errors.New("cannot remove backward relation") + var ErrCannotRemoveOldest = errors.New("cannot remove oldest index") + var ErrCannotStoreBackwardRelation = errors.New("cannot store backward relation") + var ErrCoinAddFailed = errors.New("unable to add coin") + var ErrCoinDataEncodeFailed = errors.New("unable to encode coin data") + var ErrCoinDecodeFailed = errors.New("unable to decode coin") + var ErrCoinDeleteFailed = errors.New("unable to delete coin") + var ErrCoinGetFailed = errors.New("unable to get coin") + var ErrCoinImportFailed = errors.New("unable to import coins") + var ErrCoinLookupFailed = errors.New("unable to lookup coin") + var ErrCoinNotFound = errors.New("coin not found") + var ErrCoinParseFailed = errors.New("unable to parse amount for coin") + var ErrCoinQueryFailed = errors.New("unable to query for coin") + var ErrCoinRemoveFailed = errors.New("unable to remove coin") + var ErrCoinStoreFailed = errors.New("unable to store coin") + var ErrCommitFailed = errors.New("unable to commit transaction") + var ErrCommitKeyFailed = errors.New("unable to commit new key to db") + var ErrCompressNormalFailed = errors.New("unable to compress normal") + var ErrCompressWithDictFailed = errors.New("unable to compress with dictionary") + var ErrCompressorLoadFailed = errors.New("unable to load compressor") + var ErrCopyBlockFailed = errors.New("unable to copy block") + var ErrCreateTempDirectoryFailed = errors.New("unable to create temporary directory") + var ErrCurrentBlockGetFailed = errors.New("unable to get current block identifier") + var ErrDBCloseFailed = errors.New("unable to close database") + var ErrDatabaseOpenFailed = errors.New("unable to open database") + var ErrDecompressFailed = errors.New("unable to decompress") + var ErrDecompressOutputMismatch = errors.New("decompressed dictionary output does not match") + var ErrDecompressSaveUnsuccessful = errors.New("unable to store decompressed file") + var ErrDecompressWithDictFailed = errors.New("unable to decompress with dictionary") + var ErrDetermineSigTypeFailed = errors.New("cannot determine signature type for payload") + var ErrDuplicateCoinFound = errors.New("duplicate coin found") + var ErrDuplicateKey = errors.New("duplicate key") + var ErrDuplicateTransactionHash = errors.New("duplicate transaction hash") + var ErrHeadBlockGetFailed = errors.New("unable to get head block") + var ErrHeadBlockIdentifierUpdateFailed = errors.New("unable to update head block identifier") + var ErrHeadBlockNotFound = errors.New("head block not found") + var ErrHelperHandlerMissing = errors.New("balance storage helper or handler is missing") + var ErrInvalidChangeValue = errors.New("invalid change value") + var ErrInvalidLiveBalance = errors.New("invalid live balance") + var ErrInvalidValue = errors.New("invalid value") + var ErrInvokeZSTDFailed = errors.New("unable to start zstd") + var ErrJobAddFailed = errors.New("unable to add job") + var ErrJobDecodeFailed = errors.New("unable to decode job") + var ErrJobDoesNotExist = errors.New("job does not exist") + var ErrJobEncodeFailed = errors.New("unable to encode job") + var ErrJobGetFailed = errors.New("unable to get job") + var ErrJobIdentifierDecodeFailed = errors.New("unable to decode existing identifier") + var ErrJobIdentifierEncodeFailed = errors.New("unable to encode job identifier") + var ErrJobIdentifierGetFailed = errors.New("unable to get next identifier") + var ErrJobIdentifierNotFound = errors.New("identifier not found") + var ErrJobIdentifierRemoveFailed = errors.New("unable to remove identifier") + var ErrJobIdentifierUpdateFailed = errors.New("unable to update job identifier") + var ErrJobIdentifiersEncodeAllFailed = errors.New("unable to encode identifiers") + var ErrJobIdentifiersSetAllFailed = errors.New("unable to set identifiers") + var ErrJobMetadataUpdateFailed = errors.New("unable to update metadata") + var ErrJobRemoveFailed = errors.New("unable to remove job") + var ErrJobUpdateFailed = errors.New("unable to update job") + var ErrJobUpdateOldFailed = errors.New("unable to update terminal job") + var ErrJobsGetAllFailed = errors.New("unable to get all jobs") + var ErrKeyGetFailed = errors.New("unable to get key") + var ErrKeyScanFailed = errors.New("database scan for keys failed") + var ErrLastProcessedBlockPrecedesStart = errors.New("last processed block is less than start index") + var ErrLoadDictFailed = errors.New("unable to load dictionary") + var ErrLoadFileUnsuccessful = errors.New("unable to load file") + var ErrMaxEntries = errors.New("max entries reached") + var ErrNegativeBalance = errors.New("negative balance") + var ErrNoAddrAvailable = errors.New("no addresses available") + var ErrNoEntriesFoundInNamespace = errors.New("found 0 entries for namespace") + var ErrNothingToPrune = errors.New("nothing to prune") + var ErrObjectDecodeFailed = errors.New("unable to decode object") + var ErrObjectEncodeFailed = errors.New("unable to encode object") + var ErrOldestIndexMissing = errors.New("oldest index missing") + var ErrOldestIndexRead = errors.New("cannot read oldest index") + var ErrOldestIndexUpdateFailed = errors.New("oldest index update failed") + var ErrOperationParseFailed = errors.New("unable to parse operation success") + var ErrParseKeyPairFailed = errors.New("unable to parse key pair") + var ErrParseSavedKeyFailed = errors.New("unable to parse saved key") + var ErrPrefundedAcctStoreFailed = errors.New("unable to store prefunded account") + var ErrPruningFailed = errors.New("pruning failed") + var ErrRandomAddress = errors.New("cannot select random address") + var ErrRawCompressFailed = errors.New("unable to compress raw bytes") + var ErrRawDecodeFailed = errors.New("unable to decode bytes") + var ErrRawDecompressFailed = errors.New("unable to decompress raw bytes") + var ErrReaderCloseFailed = errors.New("unable to close reader") + var ErrRecompressFailed = errors.New("unable to recompress") + var ErrReconciliationUpdateCommitFailed = errors.New("unable to commit last reconciliation update") + var ErrScanFailed = errors.New("unable to scan") + var ErrScanGetValueFailed = errors.New("unable to get value for key") + var ErrScanWorkerFailed = errors.New("worker failed") + var ErrSerializeKeyFailed = errors.New("unable to serialize key") + var ErrSignPayloadFailed = errors.New("unable to to sign payload") + var ErrSignerCreateFailed = errors.New("unable to create signer") + var ErrStoreKeyFailed = errors.New("unable to store key") + var ErrTrainZSTDFailed = errors.New("unable to train zstd") + var ErrTransactionDBQueryFailed = errors.New("unable to query database for transaction") + var ErrTransactionDataEncodeFailed = errors.New("unable to encode transaction data") + var ErrTransactionDeleteFailed = errors.New("could not remove transaction") + var ErrTransactionDoesNotExistInBlock = errors.New("transaction does not exist in block") + var ErrTransactionGetFailed = errors.New("could not get transaction") + var ErrTransactionHashContentsDecodeFailed = errors.New("could not decode transaction hash contents") + var ErrTransactionHashNotFound = errors.New("saved blocks at transaction does not contain transaction hash") + var ErrTransactionHashStoreFailed = errors.New("unable to store transaction hash") + var ErrTransactionNotFound = errors.New("unable to find transaction") + var ErrUTXOBalanceGetFailed = errors.New("unable to get utxo balance") + var ErrUnableToDetermineIfSkipOperation = errors.New("unable to to determine if should skip operation") + var ErrWalkFilesFailed = errors.New("unable to walk files") + var ErrWriterCloseFailed = errors.New("unable to close writer") + var JobStorageErrs = []error + var KeyStorageErrs = []error + func Err(err error) (bool, string)