maint

package
v0.2.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckFollows

type CheckFollows struct {
	Delete     bool
	Processed  int
	BadFollows int
}

func NewCheckFollows

func NewCheckFollows(delete bool) *CheckFollows

func (*CheckFollows) Check

func (c *CheckFollows) Check() error

type CheckLockUtxo

type CheckLockUtxo struct {
	MissingUtxos   []memo.Out
	CheckedOutputs int
	FoundInputs    int
	FoundUtxos     int
	OutsRemoved1   int
	OutsRemoved2   int
}

func NewCheckLockUtxo

func NewCheckLockUtxo() *CheckLockUtxo

func (*CheckLockUtxo) Check

func (c *CheckLockUtxo) Check(blockHash []byte) error

type PopulateAddr

type PopulateAddr struct {
	Checked int64
	Saved   int64
	Inputs  bool
	// contains filtered or unexported fields
}

func NewPopulateAddr

func NewPopulateAddr(inputs bool) *PopulateAddr

func (*PopulateAddr) GetHasError

func (p *PopulateAddr) GetHasError() bool

func (*PopulateAddr) GetShardStatus

func (p *PopulateAddr) GetShardStatus(shard uint32) *item.ProcessStatus

func (*PopulateAddr) GetStatusName

func (p *PopulateAddr) GetStatusName() string

func (*PopulateAddr) Populate

func (p *PopulateAddr) Populate(newRun bool) error

func (*PopulateAddr) SetHasError

func (p *PopulateAddr) SetHasError(hasError bool)

func (*PopulateAddr) SetShardStatus

func (p *PopulateAddr) SetShardStatus(shard uint32, status []byte)

type PopulateP2sh

type PopulateP2sh struct {
	BlocksProcessed int
}

func NewPopulateP2sh

func NewPopulateP2sh() *PopulateP2sh

func (*PopulateP2sh) Populate

func (p *PopulateP2sh) Populate(startHeight int64) error

type PopulateP2shDirect

type PopulateP2shDirect struct {
	Checked int64
	Saved   int64
	// contains filtered or unexported fields
}

func NewPopulateP2shDirect

func NewPopulateP2shDirect() *PopulateP2shDirect

func (*PopulateP2shDirect) GetHasError

func (p *PopulateP2shDirect) GetHasError() bool

func (*PopulateP2shDirect) GetShardStatus

func (p *PopulateP2shDirect) GetShardStatus(shard uint32) *item.ProcessStatus

func (*PopulateP2shDirect) Populate

func (p *PopulateP2shDirect) Populate(newRun bool) error

func (*PopulateP2shDirect) SetHasError

func (p *PopulateP2shDirect) SetHasError(hasError bool)

func (*PopulateP2shDirect) SetShardStatus

func (p *PopulateP2shDirect) SetShardStatus(shard uint32, status []byte)

type ShardProcess

type ShardProcess struct {
	Errors []error
	Mutex  sync.Mutex
	Wg     sync.WaitGroup
}

func (*ShardProcess) AddError

func (p *ShardProcess) AddError(shard uint32, err error)

Jump to

Keyboard shortcuts

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