Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var IndexHeight = indexer.CreateIndexer(func(indexerDB tmdb.Batch, block *tm.Block, _ *tm.BlockID, _ *mantlemint.EventCollector) error { defer fmt.Printf("[indexer/height] indexing done for height %d\n", block.Height) height := block.Height record := HeightRecord{Height: uint64(height)} recordJSON, recordErr := tmjson.Marshal(record) if recordErr != nil { return recordErr } return indexerDB.Set(getKey(), recordJSON) })
Functions ¶
This section is empty.
Types ¶
type HeightRecord ¶
type HeightRecord struct {
Height uint64 `json:"height"`
}
Click to show internal directories.
Click to hide internal directories.