Documentation ¶
Index ¶
- Constants
- Variables
- type BlockFile
- func (bf *BlockFile) AppendBlock(number uint64, hash, body, receipts, transactions []byte) (err error)
- func (bf *BlockFile) Blocks() (uint64, error)
- func (bf *BlockFile) Close() error
- func (bf *BlockFile) Get(kind string, number uint64) ([]byte, error)
- func (bf *BlockFile) TruncateBlocks(items uint64) error
- type BlockTable
Constants ¶
View Source
const ( // freezerHashTable indicates the name of the freezer canonical hash table. BlockFileHashTable = "hashes" // freezerBodiesTable indicates the name of the freezer block body table. BlockFileBodiesTable = "bodies" // freezerHeaderTable indicates the name of the freezer header table. BlockFileTXsTable = "transactions" // freezerReceiptTable indicates the name of the freezer receipts table. BlockFileReceiptTable = "receipts" )
Variables ¶
View Source
var BlockFileSchema = map[string]bool{ BlockFileHashTable: true, BlockFileBodiesTable: true, BlockFileTXsTable: true, BlockFileReceiptTable: true, }
Functions ¶
This section is empty.
Types ¶
type BlockFile ¶
type BlockFile struct {
// contains filtered or unexported fields
}
func NewBlockFile ¶
func NewBlockFile(repoRoot string, logger logrus.FieldLogger) (*BlockFile, error)
func (*BlockFile) AppendBlock ¶
func (*BlockFile) TruncateBlocks ¶
type BlockTable ¶
type BlockTable struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.