diff --git a/routing/chainview/neutrino.go b/routing/chainview/neutrino.go index e464f2b1..6b98f598 100644 --- a/routing/chainview/neutrino.go +++ b/routing/chainview/neutrino.go @@ -241,6 +241,10 @@ func (c *CfFilteredChainView) FilterBlock(blockHash *chainhash.Hash) (*FilteredB return nil, err } + if filter == nil { + return nil, fmt.Errorf("Unable to fetch filter") + } + // Before we can match the filter, we'll need to map each item in our // chain filter to the representation that included in the compact // filters.