diff --git a/src/wallet/rpcdump.cpp b/src/wallet/rpcdump.cpp --- a/src/wallet/rpcdump.cpp +++ b/src/wallet/rpcdump.cpp @@ -1139,6 +1139,16 @@ } } +static UniValue ProcessImportLegacy(ImportData &import_data, + std::map &pubkey_map, + std::map &privkey_map, + std::set &script_pub_keys, + bool &have_solving_data, + const UniValue &data) { + UniValue warnings(UniValue::VARR); + return warnings; +} + static UniValue ProcessImport(CWallet *const pwallet, const UniValue &data, const int64_t timestamp) EXCLUSIVE_LOCKS_REQUIRED(pwallet->cs_wallet) { @@ -1162,6 +1172,10 @@ std::set script_pub_keys; bool have_solving_data; + warnings = + ProcessImportLegacy(import_data, pubkey_map, privkey_map, + script_pub_keys, have_solving_data, data); + // First ensure scriptPubKey has either a script or JSON with "address" // string const UniValue &scriptPubKey = data["scriptPubKey"]; @@ -1297,6 +1311,7 @@ // Not a required key continue; } + if (pubkey_map.count(require_key.first) == 0 && privkey_map.count(require_key.first) == 0) { error = "some required keys are missing";