Documentation
¶
Overview ¶
账本约束数据结构定义
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockHandle ¶
type BlockHandle interface {
GetProposer() []byte
GetHeight() int64
GetBlockid() []byte
GetConsensusStorage() ([]byte, error)
GetTimestamp() int64
SetItem(item string, value interface{}) error
MakeBlockId() ([]byte, error)
GetPreHash() []byte
GetNextHash() []byte
GetPublicKey() string
GetSign() []byte
GetTxIDs() []string
GetInTrunk() bool
}
区块基础操作
type VersionedData ¶
func (*VersionedData) GetPureData ¶
func (t *VersionedData) GetPureData() *PureData
func (*VersionedData) GetRefOffset ¶
func (t *VersionedData) GetRefOffset() int32
func (*VersionedData) GetRefTxid ¶
func (t *VersionedData) GetRefTxid() []byte
type XMIterator ¶
type XMIterator interface {
Key() []byte
Value() *VersionedData
Next() bool
Error() error
// Iterator 必须在使用完毕后关闭
Close()
}
XMIterator iterates over key/value pairs in key order
Click to show internal directories.
Click to hide internal directories.