Documentation ¶
Index ¶
- Constants
- Variables
- func EthAPI(ctx context.Context, db *sqlx.DB, chainCfg *params.ChainConfig) (*ipldEth.PublicEthAPI, error)
- func NewEthBackend(db *sqlx.DB, c *ipldEth.Config) (*ipldEth.Backend, error)
- func NewService(cfg *Config, progressChan chan uint64) *service
- func ValidateAccessListElementsRef(db *sqlx.DB, blockNumber uint64) error
- func ValidateBlock(blockToBeValidated *types.Block, b *ipldEth.Backend, blockNumber uint64) error
- func ValidateHeaderCIDsRef(db *sqlx.DB, blockNumber uint64) error
- func ValidateIPFSBlocks(db *sqlx.DB, blockNumber uint64, CIDTable string, mhKeyField string) error
- func ValidateLogCIDsRef(db *sqlx.DB, blockNumber uint64) error
- func ValidateReceiptCIDsRef(db *sqlx.DB, blockNumber uint64) error
- func ValidateReferentialIntegrity(db *sqlx.DB, blockNumber uint64) error
- func ValidateStateAccountsRef(db *sqlx.DB, blockNumber uint64) error
- func ValidateStateCIDsRef(db *sqlx.DB, blockNumber uint64) error
- func ValidateStorageCIDsRef(db *sqlx.DB, blockNumber uint64) error
- func ValidateTransactionCIDsRef(db *sqlx.DB, blockNumber uint64) error
- func ValidateUncleCIDsRef(db *sqlx.DB, blockNumber uint64) error
- type Config
Constants ¶
const ( CIDsRefIPLDBlocks = `` /* 254-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 = `` /* 375-byte string literal not displayed */ StateAccountsRefStateCIDs = `` /* 385-byte string literal not displayed */ AccessListElementsRefTransactionCIDs = `` /* 363-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" )
var IntegrationTestChainConfig = ¶ms.ChainConfig{ ChainID: big.NewInt(99), HomesteadBlock: big.NewInt(0), EIP150Block: big.NewInt(0), EIP155Block: big.NewInt(0), EIP158Block: big.NewInt(0), ByzantiumBlock: big.NewInt(0), ConstantinopleBlock: big.NewInt(0), PetersburgBlock: big.NewInt(0), IstanbulBlock: big.NewInt(0), Clique: ¶ms.CliqueConfig{ Period: 0, Epoch: 30000, }, }
var TestChainConfig = ¶ms.ChainConfig{ ChainID: big.NewInt(1), HomesteadBlock: big.NewInt(0), EIP150Block: big.NewInt(0), EIP155Block: big.NewInt(0), EIP158Block: big.NewInt(0), ByzantiumBlock: big.NewInt(0), ConstantinopleBlock: big.NewInt(0), PetersburgBlock: big.NewInt(0), IstanbulBlock: big.NewInt(0), MuirGlacierBlock: big.NewInt(0), BerlinBlock: big.NewInt(0), LondonBlock: big.NewInt(6), ArrowGlacierBlock: big.NewInt(0), Ethash: new(params.EthashConfig), }
Functions ¶
func EthAPI ¶
func EthAPI(ctx context.Context, db *sqlx.DB, chainCfg *params.ChainConfig) (*ipldEth.PublicEthAPI, error)
func NewService ¶
func ValidateAccessListElementsRef ¶
ValidateAccessListElementsRef does a reference integrity check on references in eth.access_list_elements table
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 ValidateStateAccountsRef ¶
ValidateStateAccountsRef does a reference integrity check on references in eth.state_accounts table
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