mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-11 05:04:35 +00:00
commit
813a09cb70
5 changed files with 13 additions and 4 deletions
|
@ -32,6 +32,7 @@ class MainDB {
|
||||||
// inspector: kDebugMode,
|
// inspector: kDebugMode,
|
||||||
inspector: false,
|
inspector: false,
|
||||||
name: "wallet_data",
|
name: "wallet_data",
|
||||||
|
maxSizeMiB: 512,
|
||||||
);
|
);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -106,6 +106,7 @@ void main() async {
|
||||||
[LogSchema],
|
[LogSchema],
|
||||||
directory: (await StackFileSystem.applicationIsarDirectory()).path,
|
directory: (await StackFileSystem.applicationIsarDirectory()).path,
|
||||||
inspector: false,
|
inspector: false,
|
||||||
|
maxSizeMiB: 512,
|
||||||
);
|
);
|
||||||
await Logging.instance.init(isar);
|
await Logging.instance.init(isar);
|
||||||
await DebugService.instance.init(isar);
|
await DebugService.instance.init(isar);
|
||||||
|
|
|
@ -48,9 +48,10 @@ class ExchangeDataLoadingService {
|
||||||
PairSchema,
|
PairSchema,
|
||||||
],
|
],
|
||||||
directory: (await StackFileSystem.applicationIsarDirectory()).path,
|
directory: (await StackFileSystem.applicationIsarDirectory()).path,
|
||||||
inspector: kDebugMode,
|
// inspector: kDebugMode,
|
||||||
// inspector: false,
|
inspector: false,
|
||||||
name: "exchange_cache",
|
name: "exchange_cache",
|
||||||
|
maxSizeMiB: 256,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -114,12 +115,16 @@ class ExchangeDataLoadingService {
|
||||||
try {
|
try {
|
||||||
await Future.wait([
|
await Future.wait([
|
||||||
_loadChangeNowCurrencies(),
|
_loadChangeNowCurrencies(),
|
||||||
_loadChangeNowFixedRatePairs(),
|
// _loadChangeNowFixedRatePairs(),
|
||||||
_loadChangeNowEstimatedRatePairs(),
|
// _loadChangeNowEstimatedRatePairs(),
|
||||||
// loadSimpleswapFixedRateCurrencies(ref),
|
// loadSimpleswapFixedRateCurrencies(ref),
|
||||||
// loadSimpleswapFloatingRateCurrencies(ref),
|
// loadSimpleswapFloatingRateCurrencies(ref),
|
||||||
loadMajesticBankCurrencies(),
|
loadMajesticBankCurrencies(),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
await _loadChangeNowFixedRatePairs();
|
||||||
|
await _loadChangeNowEstimatedRatePairs();
|
||||||
|
|
||||||
Logging.instance.log(
|
Logging.instance.log(
|
||||||
"ExchangeDataLoadingService.loadAll finished in ${DateTime.now().difference(start).inSeconds} seconds",
|
"ExchangeDataLoadingService.loadAll finished in ${DateTime.now().difference(start).inSeconds} seconds",
|
||||||
level: LogLevel.Info,
|
level: LogLevel.Info,
|
||||||
|
|
|
@ -62,6 +62,7 @@ class DesktopSecureStore {
|
||||||
directory: (await StackFileSystem.applicationIsarDirectory()).path,
|
directory: (await StackFileSystem.applicationIsarDirectory()).path,
|
||||||
inspector: false,
|
inspector: false,
|
||||||
name: "desktopStore",
|
name: "desktopStore",
|
||||||
|
maxSizeMiB: 512,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -35,6 +35,7 @@ class Logging {
|
||||||
isar = await Isar.open(
|
isar = await Isar.open(
|
||||||
[LogSchema],
|
[LogSchema],
|
||||||
inspector: false,
|
inspector: false,
|
||||||
|
maxSizeMiB: 512,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue