compressedblock

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CompressedBlockTableName = `compressed_block`
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CompressedBlock

type CompressedBlock struct {
	gorm.Model
	BlockSize         uint16
	BlockHeight       int64
	StateRoot         string
	PublicData        string
	Timestamp         int64
	PublicDataOffsets string
}

func (*CompressedBlock) TableName

func (*CompressedBlock) TableName() string

type CompressedBlockModel

type CompressedBlockModel interface {
	CreateCompressedBlockTable() error
	DropCompressedBlockTable() error
	GetCompressedBlocksBetween(start, end int64) (blocksForCommit []*CompressedBlock, err error)
	CreateCompressedBlockInTransact(tx *gorm.DB, block *CompressedBlock) error
}

func NewCompressedBlockModel

func NewCompressedBlockModel(db *gorm.DB) CompressedBlockModel

Jump to

Keyboard shortcuts

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