Documentation
¶
Index ¶
- Constants
- Variables
- func EthAPI(ctx context.Context, db *sqlx.DB, chainCfg *params.ChainConfig) (*ipldeth.PublicEthAPI, error)
- func ValidateBlock(blockToBeValidated *types.Block, b *ipldeth.Backend, blockNumber uint64) error
- func ValidateHeaderCIDsRef(tx *sqlx.Tx, blockNumber uint64) error
- func ValidateIPFSBlocks(tx *sqlx.Tx, blockNumber uint64, CIDTable string, CIDField string) error
- func ValidateLogCIDsRef(tx *sqlx.Tx, blockNumber uint64) error
- func ValidateReceiptCIDsRef(tx *sqlx.Tx, blockNumber uint64) error
- func ValidateReferentialIntegrity(tx *sqlx.Tx, blockNumber uint64) error
- func ValidateStateCIDsRef(tx *sqlx.Tx, blockNumber uint64) error
- func ValidateStorageCIDsRef(tx *sqlx.Tx, blockNumber uint64) error
- func ValidateTransactionCIDsRef(tx *sqlx.Tx, blockNumber uint64) error
- func ValidateUncleCIDsRef(tx *sqlx.Tx, blockNumber uint64) error
- type ChainNotSyncedError
- type Config
- type Service
Constants ¶
const ( CIDsRefIPLDBlocks = `` /* 252-byte string literal not displayed */ UncleCIDsRefHeaderCIDs = `` /* 313-byte string literal not displayed */ TransactionCIDsRefHeaderCIDs = `` /* 337-byte string literal not displayed */ ReceiptCIDsRefTransactionCIDs = `` /* 394-byte string literal not displayed */ StateCIDsRefHeaderCIDs = `` /* 313-byte string literal not displayed */ StorageCIDsRefStateCIDs = `` /* 387-byte string literal not displayed */ LogCIDsRefReceiptCIDs = `` /* 351-byte string literal not displayed */ )
Variables ¶
var ( ReferentialIntegrityErr = "referential integrity check failed at block %d, entry for %s not found" EntryNotFoundErr = "entry for %s not found" )
Functions ¶
func EthAPI ¶
func EthAPI(ctx context.Context, db *sqlx.DB, chainCfg *params.ChainConfig) (*ipldeth.PublicEthAPI, error)
func ValidateBlock ¶
ValidateBlock validates block at the given height
func ValidateHeaderCIDsRef ¶
ValidateHeaderCIDsRef does a reference integrity check on references in eth.header_cids table
func ValidateIPFSBlocks ¶
ValidateIPFSBlocks does a reference integrity check between the given CID table and IPFS blocks table on MHKey and block number
func ValidateLogCIDsRef ¶
ValidateLogCIDsRef does a reference integrity check on references in eth.log_cids table
func ValidateReceiptCIDsRef ¶
ValidateReceiptCIDsRef does a reference integrity check on references in eth.receipt_cids table
func ValidateReferentialIntegrity ¶
ValidateReferentialIntegrity validates referential integrity at the given height
func ValidateStateCIDsRef ¶
ValidateStateCIDsRef does a reference integrity check on references in eth.state_cids table
func ValidateStorageCIDsRef ¶
ValidateStorageCIDsRef does a reference integrity check on references in eth.storage_cids table
func ValidateTransactionCIDsRef ¶
ValidateTransactionCIDsRef does a reference integrity check on references in eth.header_cids table
Types ¶
type ChainNotSyncedError ¶
type ChainNotSyncedError struct {
Head uint64
}
func (*ChainNotSyncedError) Error ¶
func (e *ChainNotSyncedError) Error() string