Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockLogger ¶ added in v0.8.9
type BlockLogger struct {
// contains filtered or unexported fields
}
BlockLogger is a type tracking the amount of blocks/headers/transactions to log the time it took to receive them
func NewBlockLogger ¶ added in v0.8.9
func NewBlockLogger() *BlockLogger
NewBlockLogger creates a new instance with zeroed blocks/headers/transactions/time counters.
func (*BlockLogger) LogBlock ¶ added in v0.8.9
func (bl *BlockLogger) LogBlock(block *externalapi.DomainBlock)
LogBlock logs a new block blue score as an information message to show progress to the user. In order to prevent spam, it limits logging to one message every 10 seconds with duration and totals included.
Click to show internal directories.
Click to hide internal directories.