loopdb: static address store

This commit is contained in:
Slyghtning 2023-11-09 19:07:48 +01:00
parent 8f60a49977
commit ca2ecac3d1
No known key found for this signature in database
GPG key ID: F82D456EA023C9BF
3 changed files with 210 additions and 0 deletions

View file

@ -309,6 +309,12 @@ func (db *BaseDB) FixFaultyTimestamps(ctx context.Context) error {
return tx.Commit()
}
// GetNetwork returns the network(mainnet, testnet...) that the database is
// running on.
func (db *BaseDB) GetNetwork() *chaincfg.Params {
return db.network
}
// TxOptions represents a set of options one can use to control what type of
// database transaction is created. Transaction can whether be read or write.
type TxOptions interface {