block

package
v0.0.0-...-65a0283 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccumulateRewards

func AccumulateRewards(block *models.Block, uncles []models.Uncle) (*big.Int, []*big.Int, *big.Int)

Types

type Config

type Config struct {
	Enabled     bool   `json:"enabled"`
	Interval    string `json:"interval"`
	MaxRoutines int    `json:"routines"`
	Tracing     struct {
		StartBlock uint64 `json:"start_block"`
		BatchSize  int    `json:"batch_size"`
	} `json:"tracing"`
}

type Crawler

type Crawler struct {
	// contains filtered or unexported fields
}

func NewBlockCrawler

func NewBlockCrawler(db *storage.MongoDB, cfg *Config, logger log.Logger, rpc *rpc.RPCClient) *Crawler

func (*Crawler) RunLoop

func (c *Crawler) RunLoop()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL