Changeset View
Changeset View
Standalone View
Standalone View
src/test/util/wallet.cpp
// Copyright (c) 2019 The Bitcoin Core developers | // Copyright (c) 2019 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include <test/util/wallet.h> | #include <test/util/wallet.h> | ||||
#include <config.h> | #include <config.h> | ||||
#include <key_io.h> | #include <key_io.h> | ||||
#ifdef ENABLE_WALLET | #ifdef ENABLE_WALLET | ||||
#include <wallet/wallet.h> | #include <wallet/wallet.h> | ||||
#endif // ENABLE_WALLET | #endif // ENABLE_WALLET | ||||
const std::string ADDRESS_BCHREG_UNSPENDABLE = | const std::string ADDRESS_ECREG_UNSPENDABLE = | ||||
"ecregtest:qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqcrl5mqkt"; | "ecregtest:qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqcrl5mqkt"; | ||||
#ifdef ENABLE_WALLET | #ifdef ENABLE_WALLET | ||||
std::string getnewaddress(const Config &config, CWallet &w) { | std::string getnewaddress(const Config &config, CWallet &w) { | ||||
constexpr auto output_type = OutputType::LEGACY; | constexpr auto output_type = OutputType::LEGACY; | ||||
CTxDestination dest; | CTxDestination dest; | ||||
std::string error; | std::string error; | ||||
if (!w.GetNewDestination(output_type, "", dest, error)) { | if (!w.GetNewDestination(output_type, "", dest, error)) { | ||||
Show All 20 Lines |