mirror of
https://github.com/LBRYFoundation/lbcwallet.git
synced 2025-08-23 17:47:29 +00:00
waddrmgr/sync: add methods to Manager to get/set birthday block
This commit is contained in:
parent
e9d24382d6
commit
e30cebea1b
1 changed files with 14 additions and 0 deletions
|
@ -110,3 +110,17 @@ func (m *Manager) SetBirthday(ns walletdb.ReadWriteBucket,
|
||||||
m.birthday = birthday
|
m.birthday = birthday
|
||||||
return putBirthday(ns, birthday)
|
return putBirthday(ns, birthday)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// BirthdayBlock returns the birthday block, or earliest block a key could have
|
||||||
|
// been used, for the manager.
|
||||||
|
func (m *Manager) BirthdayBlock(ns walletdb.ReadBucket) (BlockStamp, error) {
|
||||||
|
return fetchBirthdayBlock(ns)
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetBirthdayBlock sets the birthday block, or earliest time a key could have
|
||||||
|
// been used, for the manager.
|
||||||
|
func (m *Manager) SetBirthdayBlock(ns walletdb.ReadWriteBucket,
|
||||||
|
block BlockStamp) error {
|
||||||
|
|
||||||
|
return putBirthdayBlock(ns, block)
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue