blockchain/indexers: check for ErrNoData in extended filters

Since the tx hash has moved to the basic filter, generating an extended filter
can result in `ErrNoData`. This is handled by writing a nil filter and giving
it a zero hash.
This commit is contained in:
Alex 2017-10-31 12:29:08 -06:00 committed by Olaoluwa Osuntokun
parent e0a357abb5
commit f4060b107c

View file

@ -222,7 +222,7 @@ func (idx *CfIndex) ConnectBlock(dbTx database.Tx, block *btcutil.Block,
}
f, err = builder.BuildExtFilter(block.MsgBlock())
if err != nil {
if err != nil && err != gcs.ErrNoData {
return err
}