storage

package
v1.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2020 License: AGPL-3.0 Imports: 3 Imported by: 4

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

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

func NewUtxoEntry(utxoType uint32, blockHeight uint64, spent bool) *UtxoEntry

NewUtxoEntry will create a new utxo entry

func (*UtxoEntry) Descriptor

func (*UtxoEntry) Descriptor() ([]byte, []int)

func (*UtxoEntry) GetBlockHeight

func (m *UtxoEntry) GetBlockHeight() uint64

func (*UtxoEntry) GetSpent

func (m *UtxoEntry) GetSpent() bool

func (*UtxoEntry) GetType

func (m *UtxoEntry) GetType() uint32

func (*UtxoEntry) ProtoMessage

func (*UtxoEntry) ProtoMessage()

func (*UtxoEntry) Reset

func (m *UtxoEntry) Reset()

func (*UtxoEntry) SpendOutput

func (entry *UtxoEntry) SpendOutput()

SpendOutput marks the output at the provided index as spent

func (*UtxoEntry) String

func (m *UtxoEntry) String() string

func (*UtxoEntry) UnspendOutput

func (entry *UtxoEntry) UnspendOutput()

UnspendOutput marks the output at the provided index as unspent

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL