Delete extended filters in DisconnectBlock()
This commit is contained in:
parent
0a841fefcf
commit
ddfaed7f6f
1 changed files with 5 additions and 1 deletions
|
@ -176,7 +176,11 @@ func (idx *CfIndex) ConnectBlock(dbTx database.Tx, block *btcutil.Block,
|
||||||
// mapping for every passed block. This is part of the Indexer interface.
|
// mapping for every passed block. This is part of the Indexer interface.
|
||||||
func (idx *CfIndex) DisconnectBlock(dbTx database.Tx, block *btcutil.Block,
|
func (idx *CfIndex) DisconnectBlock(dbTx database.Tx, block *btcutil.Block,
|
||||||
view *blockchain.UtxoViewpoint) error {
|
view *blockchain.UtxoViewpoint) error {
|
||||||
return dbDeleteBasicEntry(dbTx, block.Hash())
|
err := dbDeleteBasicEntry(dbTx, block.Hash())
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return dbDeleteExtendedEntry(dbTx, block.Hash())
|
||||||
}
|
}
|
||||||
|
|
||||||
func (idx *CfIndex) FilterByBlockHash(hash *chainhash.Hash, extended bool) ([]byte, error) {
|
func (idx *CfIndex) FilterByBlockHash(hash *chainhash.Hash, extended bool) ([]byte, error) {
|
||||||
|
|
Loading…
Reference in a new issue