Documentation ¶
Index ¶
- Constants
- func DeleteBlockHeader(hash [32]byte)
- func Init(dbname string)
- func ReadBlockHeader(hash [32]byte) (header *protocol.Block)
- func ReadLastBlockHeader() (header *protocol.Block)
- func TearDown()
- func WriteBlockHeader(header *protocol.Block) (err error)
- func WriteLastBlockHeader(header *protocol.Block) (err error)
Constants ¶
View Source
const (
ERROR_MSG = "Initiate storage aborted: "
)
Variables ¶
This section is empty.
Functions ¶
func DeleteBlockHeader ¶
func DeleteBlockHeader(hash [32]byte)
func ReadBlockHeader ¶
func ReadLastBlockHeader ¶
func WriteBlockHeader ¶
func WriteLastBlockHeader ¶
Before saving the last block header, delete all existing entries.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.