mirror of
https://github.com/wownero/wownero-seed.git
synced 2026-10-17 15:31:48 +02: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:
@@ -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[]) {
|
||||
|
||||
Reference in New Issue
Block a user