mirror of
https://github.com/monero-project/monero.git
synced 2026-07-28 14:47:15 -07:00
tests: make libwallet_api_tests work under ctest, add tests
This commit is contained in:
@@ -975,6 +975,16 @@ bool WalletImpl::init(const std::string &daemon_address, uint64_t upper_transact
|
||||
return doInit(daemon_address, proxy_address, upper_transaction_size_limit, use_ssl);
|
||||
}
|
||||
|
||||
void WalletImpl::allowMismatchedDaemonVersion(bool allow_mismatch)
|
||||
{
|
||||
m_wallet->allow_mismatched_daemon_version(allow_mismatch);
|
||||
}
|
||||
|
||||
void WalletImpl::setRingDatabase(const std::string &path)
|
||||
{
|
||||
m_wallet->set_ring_database(path);
|
||||
}
|
||||
|
||||
void WalletImpl::setRefreshFromBlockHeight(uint64_t refresh_from_block_height)
|
||||
{
|
||||
if (checkBackgroundSync("cannot change refresh height"))
|
||||
|
||||
@@ -106,6 +106,8 @@ public:
|
||||
std::string filename() const override;
|
||||
std::string keysFilename() const override;
|
||||
bool init(const std::string &daemon_address, uint64_t upper_transaction_size_limit = 0, const std::string &daemon_username = "", const std::string &daemon_password = "", bool use_ssl = false, bool lightWallet = false, const std::string &proxy_address = "") override;
|
||||
void allowMismatchedDaemonVersion(bool allow_mismatch) override;
|
||||
void setRingDatabase(const std::string &path) override;
|
||||
bool connectToDaemon() override;
|
||||
ConnectionStatus connected() const override;
|
||||
void setTrustedDaemon(bool arg) override;
|
||||
|
||||
@@ -546,6 +546,8 @@ struct Wallet
|
||||
* \return - true on success
|
||||
*/
|
||||
virtual bool init(const std::string &daemon_address, uint64_t upper_transaction_size_limit = 0, const std::string &daemon_username = "", const std::string &daemon_password = "", bool use_ssl = false, bool lightWallet = false, const std::string &proxy_address = "") = 0;
|
||||
virtual void allowMismatchedDaemonVersion(bool allow_mismatch) = 0;
|
||||
virtual void setRingDatabase(const std::string &path) = 0;
|
||||
|
||||
/*!
|
||||
* \brief createWatchOnly - Creates a watch only wallet
|
||||
|
||||
Reference in New Issue
Block a user