rpc

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: ISC Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager is an RPC manager

func NewManager

func NewManager(
	cfg *config.Config,
	domain domain.Domain,
	netAdapter *netadapter.NetAdapter,
	protocolManager *protocol.Manager,
	connectionManager *connmanager.ConnectionManager,
	addressManager *addressmanager.AddressManager,
	utxoIndex *utxoindex.UTXOIndex,
	consensusEventsChan chan externalapi.ConsensusEvent,
	shutDownChan chan<- struct{}) *Manager

NewManager creates a new RPC Manager

func (*Manager) NotifyFinalityConflict

func (m *Manager) NotifyFinalityConflict(violatingBlockHash string) error

NotifyFinalityConflict notifies the manager that there's a finality conflict in the DAG

func (*Manager) NotifyFinalityConflictResolved

func (m *Manager) NotifyFinalityConflictResolved(finalityBlockHash string) error

NotifyFinalityConflictResolved notifies the manager that a finality conflict in the DAG has been resolved

func (*Manager) NotifyNewBlockTemplate added in v0.11.15

func (m *Manager) NotifyNewBlockTemplate() error

NotifyNewBlockTemplate notifies the manager that a new block template is available for miners

func (*Manager) NotifyPruningPointUTXOSetOverride added in v0.8.10

func (m *Manager) NotifyPruningPointUTXOSetOverride() error

NotifyPruningPointUTXOSetOverride notifies the manager whenever the UTXO index resets due to pruning point change via IBD.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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