WIP: scanOutputs

This commit is contained in:
ryleedavis 2023-10-03 19:01:43 -06:00
parent c7608b0ad7
commit 684388c6f9

View file

@ -284,6 +284,20 @@ class EpicCashWallet extends CoinServiceAPI
return ""; return "";
} }
Future<String> scanOutPuts() async {
final String wallet =
(await _secureStore.read(key: '${_walletId}_wallet'))!;
final int lastScannedBlock =
epicGetLastScannedBlock() ?? await getRestoreHeight();
final int scanChunkSize = 10000;
return await epiccash.LibEpiccash.scanOutputs(
wallet: wallet,
startHeight: lastScannedBlock,
numberOfBlocks: scanChunkSize,
);
}
Future< Future<
({ ({
double awaitingFinalization, double awaitingFinalization,