mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00
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
@ -222,7 +222,7 @@ func (idx *CfIndex) ConnectBlock(dbTx database.Tx, block *btcutil.Block,
|
|||||||
}
|
}
|
||||||
|
|
||||||
f, err = builder.BuildExtFilter(block.MsgBlock())
|
f, err = builder.BuildExtFilter(block.MsgBlock())
|
||||||
if err != nil {
|
if err != nil && err != gcs.ErrNoData {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user