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:26:39 +02:00
parent 7830fddcc3
commit 5e876ceb84
6 changed files with 268 additions and 0 deletions
+1
View File
@@ -63,6 +63,7 @@ void print_seed(const wownero_seed& seed, const char* coin, bool phrase) {
auto created_on = seed.date();
std::tm tm = *std::localtime(&created_on);
std::cout << "- created on or after: " << std::put_time(&tm, "%d/%b/%Y") << std::endl;
std::cout << "- blockheight: " << seed.blockheight() << std::endl;
}
int main(int argc, const char* argv[]) {