From af773211cbc620a1be54f517bd60e587d58a7e93 Mon Sep 17 00:00:00 2001 From: stoffu Date: Fri, 16 Feb 2018 20:04:04 +0900 Subject: Stagenet --- src/wallet/api/wallet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wallet/api/wallet.h') diff --git a/src/wallet/api/wallet.h b/src/wallet/api/wallet.h index fcd53c3f8..aa5b362df 100644 --- a/src/wallet/api/wallet.h +++ b/src/wallet/api/wallet.h @@ -115,7 +115,7 @@ public: void setRecoveringFromSeed(bool recoveringFromSeed); bool watchOnly() const; bool rescanSpent(); - bool testnet() const {return m_wallet->testnet();} + bool testnet() const {return m_wallet->nettype() == cryptonote::TESTNET;} void hardForkInfo(uint8_t &version, uint64_t &earliest_height) const; bool useForkRules(uint8_t version, int64_t early_blocks) const; -- cgit v1.2.3 From 0e7ad2e2c95814ed13b6d84fc3647fa5652cc134 Mon Sep 17 00:00:00 2001 From: stoffu Date: Mon, 5 Mar 2018 23:59:16 +0900 Subject: Wallet API: generalize 'bool testnet' to 'NetworkType nettype' --- src/wallet/api/wallet.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/wallet/api/wallet.h') diff --git a/src/wallet/api/wallet.h b/src/wallet/api/wallet.h index aa5b362df..9b4a0cc12 100644 --- a/src/wallet/api/wallet.h +++ b/src/wallet/api/wallet.h @@ -52,7 +52,7 @@ struct Wallet2CallbackImpl; class WalletImpl : public Wallet { public: - WalletImpl(bool testnet = false); + WalletImpl(NetworkType nettype = MAINNET); ~WalletImpl(); bool create(const std::string &path, const std::string &password, const std::string &language); @@ -115,7 +115,7 @@ public: void setRecoveringFromSeed(bool recoveringFromSeed); bool watchOnly() const; bool rescanSpent(); - bool testnet() const {return m_wallet->nettype() == cryptonote::TESTNET;} + NetworkType nettype() const {return static_cast(m_wallet->nettype());} void hardForkInfo(uint8_t &version, uint64_t &earliest_height) const; bool useForkRules(uint8_t version, int64_t early_blocks) const; -- cgit v1.2.3