mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
loopdb: static address store
This commit is contained in:
parent
8f60a49977
commit
ca2ecac3d1
3 changed files with 210 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue