Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockCacheEvent ¶
type BlockCacheEvent struct { Fork bool Size float64 `json:"block_size"` Gas float64 `json:"block_gas"` GasLimit float64 `json:"block_gas_limit"` Usage float64 `json:"block_usage"` Interval uint64 Timestamp uint64 Miner string Transactions []*TxEvent // contains filtered or unexported fields }
func (*BlockCacheEvent) Hash ¶
func (blockEvent *BlockCacheEvent) Hash() string
func (*BlockCacheEvent) Number ¶
func (blockEvent *BlockCacheEvent) Number() *big.Int
func (*BlockCacheEvent) ParentHash ¶
func (blockEvent *BlockCacheEvent) ParentHash() string
func (*BlockCacheEvent) SetFork ¶
func (blockEvent *BlockCacheEvent) SetFork(fork bool)
type Cache ¶
type Cache struct { Stats map[string]*Stats Tracking *Tracking // contains filtered or unexported fields }
func (*Cache) Apply ¶
func (cache *Cache) Apply(event ingest.BlockEvent)
func (*Cache) Revert ¶
func (cache *Cache) Revert(event ingest.BlockEvent)
type Miner ¶
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
func NewProcessor ¶
func (*Processor) NewBlockEvent ¶
type Stats ¶
Click to show internal directories.
Click to hide internal directories.