routing/chainview/neutrino: error if we get a nil cfilter back (#1176)

This commit is contained in:
Kenneth Perry 2018-05-03 17:21:56 -05:00 committed by Olaoluwa Osuntokun
parent a4b2765f83
commit f7c5a7a19e

@ -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.