Versions in this module Expand all Collapse all v0 v0.14.6 Jan 1, 2025 v0.14.4 Jan 1, 2025 Changes in this version + var ErrBuildBlockVerboseDataInvalidBlock = errors.New("ErrBuildBlockVerboseDataInvalidBlock") + func ConvertUTXOOutpointEntryPairsToUTXOsByAddressesEntries(address string, pairs utxoindex.UTXOOutpointEntryPairs) []*appmessage.UTXOsByAddressesEntry + type Context struct + AddressManager *addressmanager.AddressManager + Config *config.Config + ConnectionManager *connmanager.ConnectionManager + Domain domain.Domain + NetAdapter *netadapter.NetAdapter + NotificationManager *NotificationManager + ProtocolManager *protocol.Manager + ShutDownChan chan<- struct{} + UTXOIndex *utxoindex.UTXOIndex + func NewContext(cfg *config.Config, domain domain.Domain, netAdapter *netadapter.NetAdapter, ...) *Context + func (ctx *Context) ConvertAddressStringsToUTXOsChangedNotificationAddresses(addressStrings []string) ([]*UTXOsChangedNotificationAddress, error) + func (ctx *Context) ConvertVirtualSelectedParentChainChangesToChainChangedNotificationMessage(selectedParentChainChanges *externalapi.SelectedChainPath, ...) (*appmessage.VirtualSelectedParentChainChangedNotificationMessage, error) + func (ctx *Context) GetDifficultyRatio(bits uint32, params *dagconfig.Params) float64 + func (ctx *Context) PopulateBlockWithVerboseData(block *appmessage.RPCBlock, domainBlockHeader externalapi.BlockHeader, ...) error + func (ctx *Context) PopulateTransactionWithVerboseData(transaction *appmessage.RPCTransaction, ...) error + type NotificationListener struct + func (nl *NotificationListener) IncludeAcceptedTransactionIDsInVirtualSelectedParentChainChangedNotifications() bool + func (nl *NotificationListener) PropagateBlockAddedNotifications() + func (nl *NotificationListener) PropagateFinalityConflictNotifications() + func (nl *NotificationListener) PropagateFinalityConflictResolvedNotifications() + func (nl *NotificationListener) PropagateNewBlockTemplateNotifications() + func (nl *NotificationListener) PropagatePruningPointUTXOSetOverrideNotifications() + func (nl *NotificationListener) PropagateVirtualDaaScoreChangedNotifications() + func (nl *NotificationListener) PropagateVirtualSelectedParentBlueScoreChangedNotifications() + func (nl *NotificationListener) PropagateVirtualSelectedParentChainChangedNotifications(includeAcceptedTransactionIDs bool) + func (nl *NotificationListener) StopPropagatingPruningPointUTXOSetOverrideNotifications() + type NotificationManager struct + func NewNotificationManager(params *dagconfig.Params) *NotificationManager + func (nm *NotificationManager) AddListener(router *routerpkg.Router) + func (nm *NotificationManager) HasBlockAddedListeners() bool + func (nm *NotificationManager) HasListenersThatPropagateVirtualSelectedParentChainChanged() (hasListeners, hasListenersThatRequireAcceptedTransactionIDs bool) + func (nm *NotificationManager) Listener(router *routerpkg.Router) (*NotificationListener, error) + func (nm *NotificationManager) NotifyBlockAdded(notification *appmessage.BlockAddedNotificationMessage) error + func (nm *NotificationManager) NotifyFinalityConflict(notification *appmessage.FinalityConflictNotificationMessage) error + func (nm *NotificationManager) NotifyFinalityConflictResolved(notification *appmessage.FinalityConflictResolvedNotificationMessage) error + func (nm *NotificationManager) NotifyNewBlockTemplate(notification *appmessage.NewBlockTemplateNotificationMessage) error + func (nm *NotificationManager) NotifyPruningPointUTXOSetOverride() error + func (nm *NotificationManager) NotifyUTXOsChanged(utxoChanges *utxoindex.UTXOChanges) error + func (nm *NotificationManager) NotifyVirtualDaaScoreChanged(notification *appmessage.VirtualDaaScoreChangedNotificationMessage) error + func (nm *NotificationManager) NotifyVirtualSelectedParentBlueScoreChanged(...) error + func (nm *NotificationManager) NotifyVirtualSelectedParentChainChanged(notification *appmessage.VirtualSelectedParentChainChangedNotificationMessage) error + func (nm *NotificationManager) PropagateUTXOsChangedNotifications(nl *NotificationListener, addresses []*UTXOsChangedNotificationAddress) + func (nm *NotificationManager) RemoveListener(router *routerpkg.Router) + func (nm *NotificationManager) StopPropagatingUTXOsChangedNotifications(nl *NotificationListener, addresses []*UTXOsChangedNotificationAddress) + type UTXOsChangedNotificationAddress struct + Address string + ScriptPublicKeyString utxoindex.ScriptPublicKeyString