block

command
v1.18.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

README


plugin: block

Introduction

store block basic infomation to database

Model

  type Block struct {
	BlockHeight     uint64 `gorm:"primary_key;" sql:"type:bigint"`
	BlockHash       string `gorm:"size:64;not null;"`
	ProducerAddress string `gorm:"size:42;not null;index:,length:9"`
	NumActions      int    `gorm:"type:int2;unsigned;not null;default:0"`
	Timestamp       int64  `gorm:"type:int4;unsigned;not null;default:0"`
	Year            int    `gorm:"type:int2; unsigned;not null;default:0;index:idx_ymd"`
	Month           int    `gorm:"type:int2; unsigned;not null;default:0;index:idx_ymd"`
	Day             int    `gorm:"type:int2; unsigned;not null;default:0;index:idx_ymd"`
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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