Documentation ¶
Index ¶
- func FetchBlocks(params Params, lastParsedBlock, currentBlock int64) ([]types.Block, error)
- func GetBlocksIntervalToFetch(params Params) (int64, int64, error)
- func GetInterval(value int, minInterval, maxInterval time.Duration) time.Duration
- func GetNextBlocksToParse(lastParsedBlock int64, currentBlock int64, maxBlocks int64) (int64, int64, error)
- func RunParser(params Params, ctx context.Context)
- func SaveLastParsedBlock(params Params, blocks []types.Block) error
- type GetBlockByNumber
- type Params
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchBlocks ¶
func GetInterval ¶
func GetNextBlocksToParse ¶ added in v1.1.15
Types ¶
Click to show internal directories.
Click to hide internal directories.