Documentation ¶
Index ¶
- func CertificateSync()
- func ClaimTrieSync()
- func GetIsExpiredAtHeight(height, blockHeight uint) bool
- func MempoolSync()
- func SyncAddressBalances() (int64, error)
- func SyncAddressBalancesJob()
- func SyncTransactionValue() (int64, error)
- func SyncTransactionValueJob()
- func ValidateChain()
- type BlockData
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
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
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
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
BlockData type holds information about where differences are in Chainquery vs the Blockchain.
func ValidateChainRange ¶ added in v1.4.0
ValidateChainRange validates a range of blocks and returns the differences.