mirror of
https://git.wownero.com/wowlet/wownero-seed.git
synced 2024-08-15 01:03:29 +00:00
Lookup table for restore heights and a blockheight calculation function
Software wallets that use this library for 14 word mnemonic seed(s) may now use `seed->blockheight()` to obtain the Wownero seed blockheight (restore height) - previously, software wallets had to implement this functionality themselves.
This commit is contained in:
parent
7830fddcc3
commit
5e876ceb84
6 changed files with 268 additions and 0 deletions
2
include/wownero_seed/heights.hpp
Normal file
2
include/wownero_seed/heights.hpp
Normal file
|
@ -0,0 +1,2 @@
|
|||
#pragma once
|
||||
unsigned int dateToRestoreHeight(time_t _t);
|
|
@ -23,6 +23,7 @@ public:
|
|||
std::time_t date() const {
|
||||
return date_;
|
||||
}
|
||||
unsigned blockheight() const;
|
||||
const std::string& correction() const {
|
||||
return correction_;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue