Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chainable ¶
type Chainable[H comparable] interface { Number() uint64 Hash() H ParentHash() H }
type DatabaseSyncer ¶
type DatabaseSyncer struct {
// contains filtered or unexported fields
}
DatabaseSyncer is used to sync blockchain data into database against the latest confirmed epoch.
func MustNewDatabaseSyncer ¶
func MustNewDatabaseSyncer(cfxClients []*sdk.Client, db *mysql.CfxStore) *DatabaseSyncer
MustNewDatabaseSyncer creates an instance of DatabaseSyncer to sync blockchain data.
func (*DatabaseSyncer) OnStateChange ¶
func (syncer *DatabaseSyncer) OnStateChange(state monitor.HealthState, details ...string)
type EthSyncer ¶
type EthSyncer struct {
// contains filtered or unexported fields
}
EthSyncer is used to synchronize evm space blockchain data into db store.
func MustNewEthSyncer ¶
MustNewEthSyncer creates an instance of EthSyncer to sync Conflux EVM space chaindata.
func (*EthSyncer) OnStateChange ¶
func (syncer *EthSyncer) OnStateChange(state monitor.HealthState, details ...string)
type TraceLogSyncer ¶
type TraceLogSyncer struct {
// contains filtered or unexported fields
}
TraceLogSyncer orchestrates the synchronization of internal contract trace logs.
func MustNewTraceLogSyncer ¶
func MustNewTraceLogSyncer(clients []*sdk.Client, store *mysql.CfxStore) *TraceLogSyncer
MustNewTraceLogSyncer creates a new TraceLogSyncer, panicking on any initialization error.
Click to show internal directories.
Click to hide internal directories.