Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/rpcwallet.cpp
Show First 20 Lines • Show All 4,030 Lines • ▼ Show 20 Lines | BlockHash start_block; | ||||
} | } | ||||
CHECK_NONFATAL(pwallet->chain().findAncestorByHeight( | CHECK_NONFATAL(pwallet->chain().findAncestorByHeight( | ||||
pwallet->GetLastBlockHash(), start_height, | pwallet->GetLastBlockHash(), start_height, | ||||
FoundBlock().hash(start_block))); | FoundBlock().hash(start_block))); | ||||
} | } | ||||
CWallet::ScanResult result = pwallet->ScanForWalletTransactions( | CWallet::ScanResult result = pwallet->ScanForWalletTransactions( | ||||
start_block, stop_height, reserver, true /* fUpdate */); | start_block, start_height, stop_height, reserver, true /* fUpdate */); | ||||
switch (result.status) { | switch (result.status) { | ||||
case CWallet::ScanResult::SUCCESS: | case CWallet::ScanResult::SUCCESS: | ||||
break; | break; | ||||
case CWallet::ScanResult::FAILURE: | case CWallet::ScanResult::FAILURE: | ||||
throw JSONRPCError( | throw JSONRPCError( | ||||
RPC_MISC_ERROR, | RPC_MISC_ERROR, | ||||
"Rescan failed. Potentially corrupted data files."); | "Rescan failed. Potentially corrupted data files."); | ||||
case CWallet::ScanResult::USER_ABORT: | case CWallet::ScanResult::USER_ABORT: | ||||
▲ Show 20 Lines • Show All 842 Lines • Show Last 20 Lines |