Changeset View
Changeset View
Standalone View
Standalone View
src/qt/test/guiutiltests.cpp
Show All 18 Lines | public: | ||||
const CChainParams &GetChainParams() const override { | const CChainParams &GetChainParams() const override { | ||||
return Params(CBaseChainParams::MAIN); | return Params(CBaseChainParams::MAIN); | ||||
} | } | ||||
private: | private: | ||||
bool useCashAddr; | bool useCashAddr; | ||||
}; | }; | ||||
} // anon ns | } // namespace | ||||
void GUIUtilTests::dummyAddressTest() { | void GUIUtilTests::dummyAddressTest() { | ||||
CChainParams ¶ms = Params(CBaseChainParams::MAIN); | CChainParams ¶ms = Params(CBaseChainParams::MAIN); | ||||
UtilCfgDummy cfg; | UtilCfgDummy cfg; | ||||
std::string dummyaddr; | std::string dummyaddr; | ||||
cfg.SetCashAddrEncoding(false); | cfg.SetCashAddrEncoding(false); | ||||
dummyaddr = GUIUtil::DummyAddress(params, cfg); | dummyaddr = GUIUtil::DummyAddress(params, cfg); | ||||
Show All 27 Lines |