Documentation ¶
Overview ¶
Package storage is a generated protocol buffer package.
It is generated from these files:
storage.proto
It has these top-level messages:
UtxoEntry
Index ¶
- Constants
- type UtxoEntry
- func (*UtxoEntry) Descriptor() ([]byte, []int)
- func (m *UtxoEntry) GetBlockHeight() uint64
- func (m *UtxoEntry) GetSpent() bool
- func (m *UtxoEntry) GetType() uint32
- func (*UtxoEntry) ProtoMessage()
- func (m *UtxoEntry) Reset()
- func (entry *UtxoEntry) SpendOutput()
- func (m *UtxoEntry) String() string
- func (entry *UtxoEntry) UnspendOutput()
Constants ¶
View Source
const ( NormalUTXOType uint32 = iota CoinbaseUTXOType CrosschainUTXOType VoteUTXOType )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UtxoEntry ¶
type UtxoEntry struct { Type uint32 `protobuf:"varint,1,opt,name=type" json:"type,omitempty"` BlockHeight uint64 `protobuf:"varint,2,opt,name=blockHeight" json:"blockHeight,omitempty"` Spent bool `protobuf:"varint,3,opt,name=spent" json:"spent,omitempty"` }
func NewUtxoEntry ¶
NewUtxoEntry will create a new utxo entry
func (*UtxoEntry) Descriptor ¶
func (*UtxoEntry) GetBlockHeight ¶
func (*UtxoEntry) ProtoMessage ¶
func (*UtxoEntry) ProtoMessage()
func (*UtxoEntry) SpendOutput ¶
func (entry *UtxoEntry) SpendOutput()
SpendOutput marks the output at the provided index as spent
func (*UtxoEntry) UnspendOutput ¶
func (entry *UtxoEntry) UnspendOutput()
UnspendOutput marks the output at the provided index as unspent
Click to show internal directories.
Click to hide internal directories.