1
0
Fork 0
forked from lthn/blockchain

added library version

This commit is contained in:
cryptozoidberg 2020-01-28 21:37:04 +01:00
parent e690673498
commit 47ef958d7e
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC
2 changed files with 6 additions and 0 deletions

View file

@ -46,6 +46,11 @@ namespace plain_wallet
glogs_initialized = true;
}
std::string get_version()
{
return PROJECT_VERSION_LONG;
}
hwallet create_instance(const std::string& ip, const std::string& port)
{
if (!glogs_initialized)

View file

@ -12,6 +12,7 @@ namespace plain_wallet
typedef int64_t hwallet;
hwallet create_instance(const std::string& ip, const std::string& port);
void destroy_instance(hwallet h);
std::string get_version();
std::string open(hwallet h, const std::string& path, const std::string& password);
std::string restore(hwallet h, const std::string& seed, const std::string& path, const std::string& password);