| 102 | static const int64_t TIMESTAMP_MIN = 0; |
| 103 | |
| 104 | static void RescanWallet(CWallet& wallet, const WalletRescanReserver& reserver, int64_t time_begin = TIMESTAMP_MIN, bool update = true) |
| 105 | { |
| 106 | int64_t scanned_time = wallet.RescanFromTime(time_begin, reserver, update); |
| 107 | if (wallet.IsAbortingRescan()) { |
| 108 | throw JSONRPCError(RPC_MISC_ERROR, "Rescan aborted by user."); |
| 109 | } else if (scanned_time > time_begin) { |
| 110 | throw JSONRPCError(RPC_WALLET_ERROR, "Rescan was unable to fully rescan the blockchain. Some transactions may be missing."); |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | RPCHelpMan importprivkey() |
| 115 | { |
no test coverage detected