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:
dsc 2022-05-21 04:16:30 +02:00
parent 7830fddcc3
commit 5e876ceb84
6 changed files with 268 additions and 0 deletions

View file

@ -0,0 +1,2 @@
#pragma once
unsigned int dateToRestoreHeight(time_t _t);

View file

@ -23,6 +23,7 @@ public:
std::time_t date() const {
return date_;
}
unsigned blockheight() const;
const std::string& correction() const {
return correction_;
}