summaryrefslogtreecommitdiff
path: root/libbridge
diff options
context:
space:
mode:
authorCzarek Nakamoto <cyjan@mrcyjanek.net>2023-12-30 00:45:47 +0100
committerCzarek Nakamoto <cyjan@mrcyjanek.net>2023-12-30 00:45:47 +0100
commit7bd5002cc92e71ed972a08dc5ebd6478cc3680d4 (patch)
tree49df16737b44b40474dc6b6ad36fdfa778a6ca13 /libbridge
parentc608ba29601fe8ad3c1cf664f03c960d415dad3e (diff)
new function:
- MONERO_Wallet_setRefreshFromBlockHeight
Diffstat (limited to 'libbridge')
-rw-r--r--libbridge/src/main/cpp/wallet2_api_c.cpp5
-rw-r--r--libbridge/src/main/cpp/wallet2_api_c.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/libbridge/src/main/cpp/wallet2_api_c.cpp b/libbridge/src/main/cpp/wallet2_api_c.cpp
index b7f0103..adb82f5 100644
--- a/libbridge/src/main/cpp/wallet2_api_c.cpp
+++ b/libbridge/src/main/cpp/wallet2_api_c.cpp
@@ -195,6 +195,11 @@ bool MONERO_Wallet_init(void* wallet_ptr, const char* daemon_address, uint64_t u
return wallet->init(std::string(daemon_address), upper_transaction_size_limit, std::string(daemon_username), std::string(daemon_password), use_ssl, lightWallet, std::string(proxy_address));
}
+void MONERO_Wallet_setRefreshFromBlockHeight(void* wallet_ptr, uint64_t refresh_from_block_height) {
+ Monero::Wallet *wallet = reinterpret_cast<Monero::Wallet*>(wallet_ptr);
+ return wallet->setRefreshFromBlockHeight(refresh_from_block_height);
+}
+
uint64_t MONERO_Wallet_getRefreshFromBlockHeight(void* wallet_ptr) {
Monero::Wallet *wallet = reinterpret_cast<Monero::Wallet*>(wallet_ptr);
return wallet->getRefreshFromBlockHeight();
diff --git a/libbridge/src/main/cpp/wallet2_api_c.h b/libbridge/src/main/cpp/wallet2_api_c.h
index 5377ff6..1b6316d 100644
--- a/libbridge/src/main/cpp/wallet2_api_c.h
+++ b/libbridge/src/main/cpp/wallet2_api_c.h
@@ -397,6 +397,7 @@ bool MONERO_Wallet_store(void* wallet_ptr, const char* path);
bool MONERO_Wallet_init(void* wallet_ptr, const char* daemon_address, uint64_t upper_transaction_size_limit, const char* daemon_username, const char* daemon_password, bool use_ssl, bool lightWallet, const char* proxy_address);
// virtual bool createWatchOnly(const std::string &path, const std::string &password, const std::string &language) const = 0;
// virtual void setRefreshFromBlockHeight(uint64_t refresh_from_block_height) = 0;
+void MONERO_Wallet_setRefreshFromBlockHeight(void* wallet_ptr, uint64_t refresh_from_block_height);
// virtual uint64_t getRefreshFromBlockHeight() const = 0;
uint64_t MONERO_Wallet_getRefreshFromBlockHeight(void* wallet_ptr);
// virtual void setRecoveringFromSeed(bool recoveringFromSeed) = 0;