dcrd/internal/progresslog
Dave Collins 6387f762af
progresslog: Make header logging concurrent safe.
This modifies the header progress logging function to be concurrent safe
and modifies some comments to call out that the various functions are
concurrent safe.

This isn't strictly necessary with the current code because the function
is only ever called from a single goroutine in the network sync manager,
but the logger is intended to be concurrent safe and future code will
likely make use of it from multiple goroutines.
2021-11-23 17:24:58 -06:00
..
doc.go progresslog: Make logger more generic. 2021-01-21 23:20:13 -06:00
logger_test.go multi: Don't use deprecated ioutil package. 2021-09-01 06:09:37 -05:00
logger.go progresslog: Make header logging concurrent safe. 2021-11-23 17:24:58 -06:00
README.md progresslog: Add package documentation. 2020-12-14 19:20:07 -06:00

progresslog

Build Status ISC License Doc

Package progresslog provides periodic logging for block processing.

Tests are included to ensure proper functionality.

Feature Overview

  • Maintains cumulative totals about blocks between each logging interval
    • Total number of blocks
    • Total number of transactions
    • Total number of votes
    • Total number of tickets
    • Total number of revocations
  • Logs all cumulative data every 10 seconds
  • Immediately logs any outstanding data when the provided sync height is reached

License

Package progresslog is licensed under the copyfree ISC License.