storage

package
v1.1.1 Latest Latest
Warning

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

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

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

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

func NewUtxoEntry(isCoinBase bool, 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) GetIsCoinBase

func (m *UtxoEntry) GetIsCoinBase() bool

func (*UtxoEntry) GetSpent

func (m *UtxoEntry) GetSpent() bool

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