mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 20:09:23 +00:00
WIP: scanOutputs
This commit is contained in:
parent
c7608b0ad7
commit
684388c6f9
1 changed files with 14 additions and 0 deletions
|
@ -284,6 +284,20 @@ class EpicCashWallet extends CoinServiceAPI
|
|||
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<
|
||||
({
|
||||
double awaitingFinalization,
|
||||
|
|
Loading…
Reference in a new issue