mirror of https://github.com/m2049r/xmrwallet.git
getRestoreHeight (#378)
This commit is contained in:
parent
bf5ed793b3
commit
fe7ab31050
|
@ -687,6 +687,13 @@ Java_com_m2049r_xmrwallet_model_Wallet_initJ(JNIEnv *env, jobject instance,
|
||||||
|
|
||||||
// virtual bool createWatchOnly(const std::string &path, const std::string &password, const std::string &language) const = 0;
|
// 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;
|
// virtual void setRefreshFromBlockHeight(uint64_t refresh_from_block_height) = 0;
|
||||||
|
|
||||||
|
JNIEXPORT jlong JNICALL
|
||||||
|
Java_com_m2049r_xmrwallet_model_Wallet_getRestoreHeight(JNIEnv *env, jobject instance) {
|
||||||
|
Bitmonero::Wallet *wallet = getHandle<Bitmonero::Wallet>(env, instance);
|
||||||
|
return wallet->getRefreshFromBlockHeight();
|
||||||
|
}
|
||||||
|
|
||||||
// virtual void setRecoveringFromSeed(bool recoveringFromSeed) = 0;
|
// virtual void setRecoveringFromSeed(bool recoveringFromSeed) = 0;
|
||||||
// virtual bool connectToDaemon() = 0;
|
// virtual bool connectToDaemon() = 0;
|
||||||
|
|
||||||
|
|
|
@ -150,7 +150,10 @@ public class Wallet {
|
||||||
|
|
||||||
// virtual bool createWatchOnly(const std::string &path, const std::string &password, const std::string &language) const = 0;
|
// 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;
|
// virtual void setRefreshFromBlockHeight(uint64_t refresh_from_block_height) = 0;
|
||||||
// virtual void setRecoveringFromSeed(bool recoveringFromSeed) = 0;
|
|
||||||
|
public native long getRestoreHeight();
|
||||||
|
|
||||||
|
// virtual void setRecoveringFromSeed(bool recoveringFromSeed) = 0;
|
||||||
// virtual bool connectToDaemon() = 0;
|
// virtual bool connectToDaemon() = 0;
|
||||||
|
|
||||||
public ConnectionStatus getConnectionStatus() {
|
public ConnectionStatus getConnectionStatus() {
|
||||||
|
|
Loading…
Reference in New Issue