btcsuite / btcd

An alternative full node bitcoin implementation written in Go (golang)
https://github.com/btcsuite/btcd/blob/master/README.md
ISC License
6.1k stars 2.31k forks source link

blockchain: set the lastflushtime when setting the lastflushhash #2089

Closed kcalvinalvin closed 5 months ago

kcalvinalvin commented 6 months ago

On startup when the headers-first mode is off, when receiving the first block, the periodic flush will trigger. The lastflushtime wasn't set which resulted in the flush being triggered on the first block on restart.

Addresses #2087

coveralls commented 6 months ago

Pull Request Test Coverage Report for Build 7393874669


Totals Coverage Status
Change from base Build 7367368711: 0.005%
Covered Lines: 28979
Relevant Lines: 51029

💛 - Coveralls