mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-30 06:43:28 +01:00
Wallet API: Easylogger wrapper for gui
This commit is contained in:
parent
3473af00ad
commit
7549116ec3
@ -44,6 +44,9 @@
|
||||
using namespace std;
|
||||
using namespace cryptonote;
|
||||
|
||||
#undef MONERO_DEFAULT_LOG_CATEGORY
|
||||
#define MONERO_DEFAULT_LOG_CATEGORY "WalletAPI"
|
||||
|
||||
namespace Monero {
|
||||
|
||||
namespace {
|
||||
@ -255,6 +258,9 @@ uint64_t Wallet::maximumAllowedAmount()
|
||||
return std::numeric_limits<uint64_t>::max();
|
||||
}
|
||||
|
||||
void Wallet::debug(const std::string &str) {
|
||||
MDEBUG(str);
|
||||
}
|
||||
|
||||
///////////////////////// WalletImpl implementation ////////////////////////
|
||||
WalletImpl::WalletImpl(bool testnet)
|
||||
|
@ -428,6 +428,8 @@ struct Wallet
|
||||
static bool keyValid(const std::string &secret_key_string, const std::string &address_string, bool isViewKey, bool testnet, std::string &error);
|
||||
static std::string paymentIdFromAddress(const std::string &str, bool testnet);
|
||||
static uint64_t maximumAllowedAmount();
|
||||
// Easylogger wrapper
|
||||
static void debug(const std::string &str);
|
||||
|
||||
/**
|
||||
* @brief StartRefresh - Start/resume refresh thread (refresh every 10 seconds)
|
||||
|
Loading…
Reference in New Issue
Block a user