|
|
@ -1,4 +1,5 @@ |
|
|
|
// Copyright (c) 2009-2014 The Bitcoin Core developers
|
|
|
|
// Copyright (c) 2019 The Hush developers
|
|
|
|
// Distributed under the MIT software license, see the accompanying
|
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
|
|
@ -278,7 +279,7 @@ UniValue importaddress(const UniValue& params, bool fHelp) |
|
|
|
std::vector<unsigned char> data(ParseHex(params[0].get_str())); |
|
|
|
script = CScript(data.begin(), data.end()); |
|
|
|
} else { |
|
|
|
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Invalid Komodo address or script"); |
|
|
|
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Invalid Hush address or script"); |
|
|
|
} |
|
|
|
|
|
|
|
string strLabel = ""; |
|
|
@ -601,7 +602,7 @@ UniValue dumpwallet_impl(const UniValue& params, bool fHelp, bool fDumpZKeys) |
|
|
|
std::sort(vKeyBirth.begin(), vKeyBirth.end()); |
|
|
|
|
|
|
|
// produce output
|
|
|
|
file << strprintf("# Wallet dump created by Komodo %s (%s)\n", CLIENT_BUILD, CLIENT_DATE); |
|
|
|
file << strprintf("# Wallet dump created by Hush %s (%s)\n", CLIENT_BUILD, CLIENT_DATE); |
|
|
|
file << strprintf("# * Created on %s\n", EncodeDumpTime(GetTime())); |
|
|
|
file << strprintf("# * Best block at time of backup was %i (%s),\n", chainActive.Height(), chainActive.Tip()->GetBlockHash().ToString()); |
|
|
|
file << strprintf("# mined on %s\n", EncodeDumpTime(chainActive.Tip()->GetBlockTime())); |
|
|
|