Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NtfnChans struct { ConnectChan chan *chainhash.Hash ReorgChanBlockData chan *blockdata.ReorgData ConnectChanWiredDB chan *chainhash.Hash ReorgChanWiredDB chan *dcrsqlite.ReorgData ConnectChanStakeDB chan *chainhash.Hash ReorgChanStakeDB chan *stakedb.ReorgData UpdateStatusNodeHeight chan uint32 UpdateStatusDBHeight chan uint32 SpendTxBlockChan, RecvTxBlockChan chan *txhelpers.BlockWatchedTx RelevantTxMempoolChan chan *dcrutil.Tx NewTxChan chan *mempool.NewTx ExpNewTxChan chan *explorer.NewMempoolTx InsightNewTxChan chan *insight.NewTx }
NtfnChans collects the chain server notification channels
Functions ¶
func DisableLog ¶
func DisableLog()
DisableLog disables all library log output. Logging output is disabled by default until UseLogger is called.
func MakeNodeNtfnHandlers ¶
func MakeNodeNtfnHandlers() (*rpcclient.NotificationHandlers, *collectionQueue)
MakeNodeNtfnHandlers defines the dcrd notification handlers
func MakeNtfnChans ¶
func MakeNtfnChans(monitorMempool, postgresEnabled bool)
MakeNtfnChans create notification channels based on config
func NewCollectionQueue ¶
func NewCollectionQueue() *collectionQueue
NewCollectionQueue creates a new collectionQueue with a queue channel large enough for 10 million block pointers.
Types ¶
type ContextualError ¶
ContextualError models an error and its root error and is returned by registerNodeNtfnHandlers
func RegisterNodeNtfnHandlers ¶
func RegisterNodeNtfnHandlers(dcrdClient *rpcclient.Client) *ContextualError
RegisterNodeNtfnHandlers registers with dcrd to receive new block, transaction and winning ticket notifications.
func (*ContextualError) Cause ¶
func (e *ContextualError) Cause() string
Cause returns the root error string
func (*ContextualError) Error ¶
func (e *ContextualError) Error() string
Click to show internal directories.
Click to hide internal directories.