mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 17:57:40 +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 "";
|
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,
|
||||||
|
|
Loading…
Reference in a new issue