jobs

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2019 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertificateSync added in v1.3.0

func CertificateSync()

CertificateSync processed all claims that have not been processed yet and verifies that any claims for channels, are signed by the channels certificate. This ensure that the channel owner actually published this claim.

func ClaimTrieSync

func ClaimTrieSync()

ClaimTrieSync synchronizes claimtrie information that is calculated and enforced by lbrycrd.

func GetIsExpiredAtHeight added in v1.4.0

func GetIsExpiredAtHeight(height, blockHeight uint) bool

GetIsExpiredAtHeight checks the claim height compared to the current height to determine expiration.

func MempoolSync added in v1.2.0

func MempoolSync()

MempoolSync synchronizes the memory pool of lbrycrd. Transactions are processed against a special block with the Hash of the mempool constant. Transactions are processed recursively since transactions in the pool can be dependent on one another. The dependent transactions are always processed first.

func SyncAddressBalances added in v1.4.0

func SyncAddressBalances() (int64, error)

SyncAddressBalances will update the balance for every address if needed based on the transaction address table and returns the number of rows changed.

func SyncAddressBalancesJob added in v1.4.0

func SyncAddressBalancesJob()

SyncAddressBalancesJob runs the SyncAddressBalances as a background job.

func SyncTransactionValue added in v1.4.0

func SyncTransactionValue() (int64, error)

SyncTransactionValue will sync up the value column of all transactions based on the transaction address table and returns the number of rows affected.

func SyncTransactionValueJob added in v1.4.0

func SyncTransactionValueJob()

SyncTransactionValueJob runs the SyncAddressBalances as a background job.

func ValidateChain added in v1.4.0

func ValidateChain()

ValidateChain goes through the entire chain to make sure the data matches what is in the block chain. If there are differences it will log an error message identifying the magnitude of the difference.

Types

type BlockData added in v1.4.0

type BlockData struct {
	Block          uint64
	TxHash         string
	MissingOutputs int
	MissingInputs  int
}

BlockData type holds information about where differences are in Chainquery vs the Blockchain.

func ValidateChainRange added in v1.4.0

func ValidateChainRange(from, to *uint64) ([]BlockData, error)

ValidateChainRange validates a range of blocks and returns the differences.

Jump to

Keyboard shortcuts

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