rpc

package
v0.11.12 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 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,
	shutDownChan chan<- struct{}) *Manager

NewManager creates a new RPC Manager

func (*Manager) NotifyBlockAddedToDAG

func (m *Manager) NotifyBlockAddedToDAG(block *externalapi.DomainBlock, virtualChangeSet *externalapi.VirtualChangeSet) error

NotifyBlockAddedToDAG notifies the manager that a block has been added to the DAG

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) 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.

func (*Manager) NotifyVirtualChange added in v0.11.7

func (m *Manager) NotifyVirtualChange(virtualChangeSet *externalapi.VirtualChangeSet) error

NotifyVirtualChange notifies the manager that the virtual block has been changed.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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