Documentation ¶
Index ¶
- type Manager
- func (m *Manager) NotifyBlockAddedToDAG(block *externalapi.DomainBlock, virtualChangeSet *externalapi.VirtualChangeSet) error
- func (m *Manager) NotifyFinalityConflict(violatingBlockHash string) error
- func (m *Manager) NotifyFinalityConflictResolved(finalityBlockHash string) error
- func (m *Manager) NotifyPruningPointUTXOSetOverride() error
- func (m *Manager) NotifyVirtualChange(virtualChangeSet *externalapi.VirtualChangeSet) error
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 ¶
NotifyFinalityConflict notifies the manager that there's a finality conflict in the DAG
func (*Manager) NotifyFinalityConflictResolved ¶
NotifyFinalityConflictResolved notifies the manager that a finality conflict in the DAG has been resolved
func (*Manager) NotifyPruningPointUTXOSetOverride ¶ added in v0.8.10
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.
Click to show internal directories.
Click to hide internal directories.