btcsuite / btcd

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

netsync: don't update mempool/fee estimator unless we're synced up #2108

Closed kcalvinalvin closed 7 months ago

kcalvinalvin commented 8 months ago

Noticed during ibd that there's a slight overhead for handleBlockchainNotification on mempool/fee estimator updates. Since there's no reason to be looking at this while we're not caught up, return early and avoid the calls.

coveralls commented 8 months ago

Pull Request Test Coverage Report for Build 7606526642


Totals Coverage Status
Change from base Build 7546934558: 0.005%
Covered Lines: 29211
Relevant Lines: 51441

💛 - Coveralls