block

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DBStatX     = "block_stat"
	NameX       = "block"
	DefaultType = "_doc"
)

db

View Source
const (
	StatMapping = `` /* 453-byte string literal not displayed */

)

mapping

Variables

This section is empty.

Functions

func NewStat

func NewStat(title, symbol string, genesis, coin int64) stat.Stat

NewStat NewStat

Types

type BStat

type BStat struct {
	Height  int64 `json:"height"`
	Time    int64 `json:"time"`
	TxCount int   `json:"tx_count"`
	Fee     int64 `json:"fee"`
	Mine    int64 `json:"mine"`
	Coins   int64 `json:"coins"`
}

BStat 统计从0高度的累计值

func (*BStat) ID

func (s *BStat) ID() string

ID id

type StatRecord

type StatRecord struct {
	*db.IKey
	*db.Op
	// contains filtered or unexported fields
}

StatRecord StatRecord

func (*StatRecord) Append

func (r *StatRecord) Append(r2 db.Record) db.Record

Append impl

func (*StatRecord) Value

func (r *StatRecord) Value() []byte

Value impl

Jump to

Keyboard shortcuts

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