index

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DUST_LIMIT = ONE_DOGE / 100 // 0.01 DOGE
View Source
const ONE_DOGE = 100_000_000 // 1 DOGE
View Source
const RETRY_DELAY = 5 * time.Second // for RPC and Database errors.

Variables

View Source
var Zeroes = [32]byte{}

Functions

func NewIndexer

func NewIndexer(db spec.Store, blocks chan walker.BlockOrUndo, trimSpentAfter int64) governor.Service

* NewIndexer creates an Indexer service that tracks the ChainState. * * `onlyScriptType` is an optional ScriptType to index (if this is 0, * all standard spendable UTXOs are indexed, including multisig.

Types

type Indexer

type Indexer struct {
	governor.ServiceCtx
	// contains filtered or unexported fields
}

func (*Indexer) Run

func (i *Indexer) Run()

Jump to

Keyboard shortcuts

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