mirror of
https://github.com/btcsuite/btcd.git
synced 2024-11-19 09:50:08 +01:00
Instrument basic logging
This commit is contained in:
parent
cf74c8c3ca
commit
9809f4ffdd
@ -7,11 +7,14 @@ package indexers
|
||||
import (
|
||||
"encoding/binary"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"github.com/btcsuite/btcd/blockchain"
|
||||
"github.com/btcsuite/btcd/database"
|
||||
"github.com/btcsuite/btcutil"
|
||||
"github.com/btcsuite/btcutil/gcs"
|
||||
|
||||
"os"
|
||||
)
|
||||
|
||||
const (
|
||||
@ -102,6 +105,8 @@ func generateFilterForBlock(block *btcutil.Block) ([]byte, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
fmt.Fprintf(os.Stderr, "Generated CBF for block %v", block.Hash())
|
||||
|
||||
return filter.Bytes(), nil
|
||||
}
|
||||
|
||||
@ -124,6 +129,8 @@ func (idx *CBFIndex) ConnectBlock(dbTx database.Tx, block *btcutil.Block,
|
||||
return err
|
||||
}
|
||||
|
||||
fmt.Fprintf(os.Stderr, "Stored CBF for block %v", block.Hash())
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user