Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/rpcdump.cpp
Show First 20 Lines • Show All 1,523 Lines • ▼ Show 20 Lines | try { | ||||
} | } | ||||
if (!pwallet->ImportPubKeys(ordered_pubkeys, pubkey_map, | if (!pwallet->ImportPubKeys(ordered_pubkeys, pubkey_map, | ||||
import_data.key_origins, add_keypool, | import_data.key_origins, add_keypool, | ||||
internal, timestamp)) { | internal, timestamp)) { | ||||
throw JSONRPCError(RPC_WALLET_ERROR, | throw JSONRPCError(RPC_WALLET_ERROR, | ||||
"Error adding address to wallet"); | "Error adding address to wallet"); | ||||
} | } | ||||
if (!pwallet->ImportScriptPubKeys(label, script_pub_keys, | if (!pwallet->ImportScriptPubKeys(label, script_pub_keys, | ||||
have_solving_data, internal, | have_solving_data, !internal, | ||||
timestamp)) { | timestamp)) { | ||||
throw JSONRPCError(RPC_WALLET_ERROR, | throw JSONRPCError(RPC_WALLET_ERROR, | ||||
"Error adding address to wallet"); | "Error adding address to wallet"); | ||||
} | } | ||||
result.pushKV("success", UniValue(true)); | result.pushKV("success", UniValue(true)); | ||||
} catch (const UniValue &e) { | } catch (const UniValue &e) { | ||||
result.pushKV("success", UniValue(false)); | result.pushKV("success", UniValue(false)); | ||||
▲ Show 20 Lines • Show All 338 Lines • Show Last 20 Lines |