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:
parent
e0a357abb5
commit
f4060b107c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue