diff --git a/src/test/util/wallet.cpp b/src/test/util/wallet.cpp index e8be7f7c0..a3fe5cb19 100644 --- a/src/test/util/wallet.cpp +++ b/src/test/util/wallet.cpp @@ -1,42 +1,42 @@ // Copyright (c) 2019 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include #include #ifdef ENABLE_WALLET #include #endif // ENABLE_WALLET const std::string ADDRESS_BCHREG_UNSPENDABLE = - "bchreg:qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqha9s37tt"; + "ecregtest:qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqcrl5mqkt"; #ifdef ENABLE_WALLET std::string getnewaddress(const Config &config, CWallet &w) { constexpr auto output_type = OutputType::LEGACY; CTxDestination dest; std::string error; if (!w.GetNewDestination(output_type, "", dest, error)) { assert(false); } return EncodeDestination(dest, config); } void importaddress(CWallet &wallet, const std::string &address) { auto spk_man = wallet.GetLegacyScriptPubKeyMan(); LOCK2(wallet.cs_wallet, spk_man->cs_KeyStore); const auto dest = DecodeDestination(address, wallet.GetChainParams()); assert(IsValidDestination(dest)); const auto script = GetScriptForDestination(dest); wallet.MarkDirty(); assert(!spk_man->HaveWatchOnly(script)); if (!spk_man->AddWatchOnly(script, 0 /* nCreateTime */)) { assert(false); } wallet.SetAddressBook(dest, /* label */ "", "receive"); } #endif // ENABLE_WALLET