Documentation ¶
Index ¶
- func GetAlertKeyDbPath(dataDir string, chainParams *chaincfg.Params) (dbPath string)
- func GetUserCheckpointDbPath(dataDir string, chainParams *chaincfg.Params) (dbPath string)
- func GetVolatileCheckpointDbPath(dataDir string, chainParams *chaincfg.Params) (dbPath string)
- type AlertKey
- type UserCheckpoint
- func (uc *UserCheckpoint) Add(height int64, hash string)
- func (uc *UserCheckpoint) CloseDB()
- func (uc *UserCheckpoint) Delete(height int64)
- func (uc *UserCheckpoint) GetMaxCheckpointHeight() (height int64)
- func (uc *UserCheckpoint) OpenDB(dataDir string, chainParams *chaincfg.Params) (*leveldb.DB, error)
- type VolatileCheckpoint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAlertKeyDbPath ¶
func GetUserCheckpointDbPath ¶
Types ¶
type AlertKey ¶
func GetAlertKeyDbInstance ¶
func GetAlertKeyDbInstance() *AlertKey
func (*AlertKey) IsValid ¶
Add alertkey if it is not in database. Returns true if both of the public keys alertkey are OK.
type UserCheckpoint ¶
func GetUserCheckpointDbInstance ¶
func GetUserCheckpointDbInstance() *UserCheckpoint
func (*UserCheckpoint) Add ¶
func (uc *UserCheckpoint) Add(height int64, hash string)
func (*UserCheckpoint) CloseDB ¶
func (uc *UserCheckpoint) CloseDB()
Basically it is called only at the end.
func (*UserCheckpoint) Delete ¶
func (uc *UserCheckpoint) Delete(height int64)
func (*UserCheckpoint) GetMaxCheckpointHeight ¶
func (uc *UserCheckpoint) GetMaxCheckpointHeight() (height int64)
type VolatileCheckpoint ¶
func GetVolatileCheckpointDbInstance ¶
func GetVolatileCheckpointDbInstance() *VolatileCheckpoint
func (*VolatileCheckpoint) ClearDB ¶
func (vc *VolatileCheckpoint) ClearDB()
func (*VolatileCheckpoint) CloseDB ¶
func (vc *VolatileCheckpoint) CloseDB()
close volatilecheckpointDB. Basically it is called only at the end.
func (*VolatileCheckpoint) OpenDB ¶
func (vc *VolatileCheckpoint) OpenDB(dataDir string, chainParams *chaincfg.Params) (*leveldb.DB, error)
open volatilecheckpointDB. Basically it is called only at startup.
func (*VolatileCheckpoint) Set ¶
func (vc *VolatileCheckpoint) Set(height int64, hash string)
Click to show internal directories.
Click to hide internal directories.