|
|
@ -1,5 +1,5 @@ |
|
|
|
// Copyright (c) 2009-2014 The Bitcoin Core developers
|
|
|
|
// Copyright (c) 2019 The Hush developers
|
|
|
|
// Copyright (c) 2019-2020 The Hush developers
|
|
|
|
// Distributed under the MIT software license, see the accompanying
|
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
|
|
@ -405,7 +405,7 @@ UniValue importwallet_impl(const UniValue& params, bool fHelp, bool fImportZKeys |
|
|
|
if (vstr.size() < 2) |
|
|
|
continue; |
|
|
|
|
|
|
|
// Let's see if the address is a valid Zcash spending key
|
|
|
|
// Let's see if the address is a valid Hush spending key
|
|
|
|
if (fImportZKeys) { |
|
|
|
auto spendingkey = DecodeSpendingKey(vstr[0]); |
|
|
|
int64_t nTime = DecodeDumpTime(vstr[1]); |
|
|
@ -424,7 +424,7 @@ UniValue importwallet_impl(const UniValue& params, bool fHelp, bool fImportZKeys |
|
|
|
continue; |
|
|
|
} else { |
|
|
|
LogPrint("zrpc", "Importing detected an error: invalid spending key. Trying as a transparent key...\n"); |
|
|
|
// Not a valid spending key, so carry on and see if it's a Zcash style t-address.
|
|
|
|
// Not a valid spending key, so carry on and see if it's a Hush transparent address
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|