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

This commit is contained in:
Kenneth Perry authored and Olaoluwa Osuntokun committed 2018-05-03 15:21:56 -07:00
1 parent a4b2765f83
commit f7c5a7a19e
1 file changed
+4
+4
View File
@@ -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.