Documentation ¶
Index ¶
- Constants
- func GetDoubleEndrsementEvidenceLevel(op tzblock.Operations) (int64, error)
- func ToDoubleBakingEvidence(op tzblock.Operations) (dee models.DoubleBakingEvidence, err error)
- type Tezos
- func (t *Tezos) BlocksInCycle() int64
- func (t *Tezos) DoubleBakingEvidence(ctx context.Context, blockLevel int, operationHash string) (dee models.DoubleBakingEvidence, err error)
- func (t *Tezos) DoubleEndrsementEvidenceLevel(ctx context.Context, blockLevel int, operationHash string) (int64, error)
- func (t *Tezos) RightsFor(ctx context.Context, blockFrom, blockTo, currentHead int64) ([]models.FutureBakingRight, error)
- func (t *Tezos) SnapshotForCycle(ctx context.Context, cycle int64, useHead bool) (snap models.Snapshot, err error)
Constants ¶
View Source
const BlocksInCycle = 4096
Variables ¶
This section is empty.
Functions ¶
func GetDoubleEndrsementEvidenceLevel ¶
func GetDoubleEndrsementEvidenceLevel(op tzblock.Operations) (int64, error)
func ToDoubleBakingEvidence ¶
func ToDoubleBakingEvidence(op tzblock.Operations) (dee models.DoubleBakingEvidence, err error)
Types ¶
type Tezos ¶
type Tezos struct {
// contains filtered or unexported fields
}
func (*Tezos) BlocksInCycle ¶
func (*Tezos) DoubleBakingEvidence ¶
func (*Tezos) DoubleEndrsementEvidenceLevel ¶
Click to show internal directories.
Click to hide internal directories.