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 ¶
- type UtxoEntry
- func (*UtxoEntry) Descriptor() ([]byte, []int)
- func (m *UtxoEntry) GetBlockHeight() uint64
- func (m *UtxoEntry) GetIsCoinBase() bool
- func (m *UtxoEntry) GetSpent() bool
- func (*UtxoEntry) ProtoMessage()
- func (m *UtxoEntry) Reset()
- func (entry *UtxoEntry) SpendOutput()
- func (m *UtxoEntry) String() string
- func (entry *UtxoEntry) UnspendOutput()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UtxoEntry ¶
type UtxoEntry struct { IsCoinBase bool `protobuf:"varint,1,opt,name=isCoinBase" json:"isCoinBase,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) GetIsCoinBase ¶
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.