dcrwnotify

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(w *wallet.Wallet, chainParams *chaincfg.Params,
	spendHintCache chainntnfs.SpendHintCache,
	confirmHintCache chainntnfs.ConfirmHintCache,
	bCache *blockcache.BlockCache) (*csnotify.ChainscanNotifier, error)

New returns a new DcrdNotifier instance. This function assumes the dcrd node detailed in the passed configuration is already running, and willing to accept new websockets clients.

Types

type DcrwChainSource

type DcrwChainSource struct {
	*csdrivers.DcrwalletCSDriver
	// contains filtered or unexported fields
}

func NewDcrwChainSource

func NewDcrwChainSource(w *wallet.Wallet, bCache *blockcache.BlockCache) *DcrwChainSource

func (*DcrwChainSource) GetBlockHash

func (s *DcrwChainSource) GetBlockHash(ctx context.Context, height int32) (*chainhash.Hash, error)

func (*DcrwChainSource) GetBlockHeader

func (s *DcrwChainSource) GetBlockHeader(ctx context.Context, hash *chainhash.Hash) (*wire.BlockHeader, error)

func (*DcrwChainSource) StoresReorgedHeaders

func (s *DcrwChainSource) StoresReorgedHeaders() bool

Jump to

Keyboard shortcuts

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