rpc

package
v0.8.4-rc2 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 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, blockInsertionResult *externalapi.BlockInsertionResult) 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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