@@ -84,7 +84,7 @@ type blockManagerCfg struct {
8484
8585 // RegFilterHeaders is the store where filter headers for the regular
8686 // compact filters are persistently stored.
87- RegFilterHeaders * headerfs.FilterHeaderStore
87+ RegFilterHeaders headerfs.FilterHeaderStore
8888
8989 // TimeSource is used to access a time estimate based on the clocks of
9090 // the connected peers.
@@ -702,7 +702,7 @@ waitForHeaders:
702702// network, if it can, and resolves any conflicts between them. It then writes
703703// any verified headers to the store.
704704func (b * blockManager ) getUncheckpointedCFHeaders (
705- store * headerfs.FilterHeaderStore , fType wire.FilterType ) error {
705+ store headerfs.FilterHeaderStore , fType wire.FilterType ) error {
706706
707707 // Get the filter header store's chain tip.
708708 filterTip , filtHeight , err := store .ChainTip ()
@@ -928,7 +928,7 @@ func (c *checkpointedCFHeadersQuery) handleResponse(req, resp wire.Message,
928928// checkpoints we got from the network. It assumes that the filter header store
929929// matches the checkpoints up to the tip of the store.
930930func (b * blockManager ) getCheckpointedCFHeaders (checkpoints []* chainhash.Hash ,
931- store * headerfs.FilterHeaderStore , fType wire.FilterType ) {
931+ store headerfs.FilterHeaderStore , fType wire.FilterType ) {
932932
933933 // We keep going until we've caught up the filter header store with the
934934 // latest known checkpoint.
@@ -1174,7 +1174,7 @@ func (b *blockManager) getCheckpointedCFHeaders(checkpoints []*chainhash.Hash,
11741174// filter header field in the next message range before writing to disk, and
11751175// the current height after writing the headers.
11761176func (b * blockManager ) writeCFHeadersMsg (msg * wire.MsgCFHeaders ,
1177- store * headerfs.FilterHeaderStore ) (* chainhash.Hash , uint32 , error ) {
1177+ store headerfs.FilterHeaderStore ) (* chainhash.Hash , uint32 , error ) {
11781178
11791179 // Check that the PrevFilterHeader is the same as the last stored so we
11801180 // can prevent misalignment.
@@ -1364,7 +1364,7 @@ func verifyCheckpoint(prevCheckpoint, nextCheckpoint *chainhash.Hash,
13641364// information.
13651365func (b * blockManager ) resolveConflict (
13661366 checkpoints map [string ][]* chainhash.Hash ,
1367- store * headerfs.FilterHeaderStore , fType wire.FilterType ) (
1367+ store headerfs.FilterHeaderStore , fType wire.FilterType ) (
13681368 []* chainhash.Hash , error ) {
13691369
13701370 // First check the served checkpoints against the hardcoded ones.
@@ -1913,7 +1913,7 @@ func (b *blockManager) getCheckpts(lastHash *chainhash.Hash,
19131913// existing store up to the tip of the store. If all of the peers match but
19141914// the store doesn't, the height at which the mismatch occurs is returned.
19151915func checkCFCheckptSanity (cp map [string ][]* chainhash.Hash ,
1916- headerStore * headerfs.FilterHeaderStore ) (int , error ) {
1916+ headerStore headerfs.FilterHeaderStore ) (int , error ) {
19171917
19181918 // Get the known best header to compare against checkpoints.
19191919 _ , storeTip , err := headerStore .ChainTip ()
0 commit comments