Documentation
¶
Index ¶
- Constants
- func AreSame(h1, h2 *Height) bool
- func NewStatusWithHeight(s protoblocktx.Status, blkNum uint64, txNum uint32) *protoblocktx.StatusWithHeight
- func NewStatusWithHeightFromRef(s protoblocktx.Status, ref *protocoordinatorservice.TxRef) *protoblocktx.StatusWithHeight
- func TxRef(txID string, blockNum uint64, txNum uint32) *protocoordinatorservice.TxRef
- func Version(version uint64) *uint64
- type Height
Constants ¶
View Source
const ( // MetaNamespaceID is the system's namespace ID that holds information about application's namespaces. MetaNamespaceID = "_meta" // ConfigNamespaceID is the system's namespace ID that holds the config transaction. ConfigNamespaceID = "_config" // ConfigKey is the key of the config transaction. ConfigKey = "_config" )
Variables ¶
This section is empty.
Functions ¶
func NewStatusWithHeight ¶ added in v0.1.6
func NewStatusWithHeight(s protoblocktx.Status, blkNum uint64, txNum uint32) *protoblocktx.StatusWithHeight
NewStatusWithHeight creates a protoblocktx.StatusWithHeight with the given values.
func NewStatusWithHeightFromRef ¶ added in v0.1.6
func NewStatusWithHeightFromRef( s protoblocktx.Status, ref *protocoordinatorservice.TxRef, ) *protoblocktx.StatusWithHeight
NewStatusWithHeightFromRef creates a protoblocktx.StatusWithHeight with the given values.
Types ¶
type Height ¶
Height represents the height of a transaction in blockchain.
func NewHeightFromBytes ¶
NewHeightFromBytes constructs a new instance of Height from serialized bytes.
func NewHeightFromTxRef ¶ added in v0.1.6
func NewHeightFromTxRef(ref *protocoordinatorservice.TxRef) *Height
NewHeightFromTxRef constructs a new instance of Height.
func (*Height) Compare ¶
Compare returns -1, zero, or +1 based on whether this height is less than, equals to, or greater than the specified height respectively.
func (*Height) WithStatus ¶ added in v0.1.6
func (h *Height) WithStatus(code protoblocktx.Status) *protoblocktx.StatusWithHeight
WithStatus creates protoblocktx.StatusWithHeight with this height and the given code.
Click to show internal directories.
Click to hide internal directories.