Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BlockBucketName = []byte("blocks") TxBucketName = []byte("txs") // state buckets Num2AccBucketName = []byte("num:acc") Addr2BalBucketName = []byte("addr:bal") Addr2NumBucketName = []byte("addr:num") )
View Source
var ( LatestHeightTag = []byte("latest:height") LatestHashTag = []byte("latest:hash") OriginHeightTag = []byte("origin:height") // store the origin block OriginHashTag = []byte("origin:hash") )
View Source
var ErrKeyNotFound = errors.New("key not found")
Functions ¶
func InitStorage ¶
InitStorage inits a new DB in data folder.
func InitTempStorage ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.