routing/chainview: check GetCFilter error
Since the filter will never be nil in non-error cases now, remove the nil-check.
This commit is contained in:
parent
5cbef663e4
commit
610a93e2ff
@ -239,11 +239,7 @@ func (c *CfFilteredChainView) FilterBlock(blockHash *chainhash.Hash) (*FilteredB
|
||||
// outpoint that have been spent.
|
||||
filter, err := c.p2pNode.GetCFilter(*blockHash, wire.GCSFilterRegular)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if filter == nil {
|
||||
return nil, fmt.Errorf("Unable to fetch filter")
|
||||
return nil, fmt.Errorf("unable to fetch filter: %v", err)
|
||||
}
|
||||
|
||||
// Before we can match the filter, we'll need to map each item in our
|
||||
|
Loading…
Reference in New Issue
Block a user