Documentation ¶
Index ¶
- Variables
- func BoltCopy(srcfile, destfile string, skip skipFunc) error
- func Bootstrap(workingDir string) error
- func Bootstrapped(workingDir string) (bool, error)
- func ChainParams(network string) (*chaincfg.Params, error)
- func Get(workingDir string, breezDB *db.DB) (cs *neutrino.ChainService, cleanupFn func() error, err error)
- func GetNeutrinoDB(workingDir string) (string, walletdb.DB, error)
- func ResetChainService(workingDir string) error
- func SetTor(t *tor.TorConfig, active bool) bool
- func TestPeer(peer string) error
- type Checkpoint
Constants ¶
This section is empty.
Variables ¶
View Source
var (
TorConfig *tor.TorConfig
)
Functions ¶
func Bootstrap ¶
Bootstrap is populating neutrino data (flat files and db) with predefined checkpoints to make the sync process a lot faster. Instad of synching from the genesis block, it is now done down to a checkpoint determined by the wallet birthday.
func Bootstrapped ¶
Bootstrapped returns true if bootstrap was done, false otherwise.
func Get ¶
func Get(workingDir string, breezDB *db.DB) (cs *neutrino.ChainService, cleanupFn func() error, err error)
Get returned a reusable ChainService
func ResetChainService ¶
ResetChainService deletes neutrino headers/cfheaders and the db so the process of synching will start from the beginning. It allows the node to recover in case some filters/headers were skipped due to unexpected error.
Types ¶
type Checkpoint ¶
type Checkpoint struct { Height uint32 BlockHeader *wire.BlockHeader FilterHeader *chainhash.Hash }
Checkpoint is a predefined block header and filter header
Click to show internal directories.
Click to hide internal directories.