getStatus method
Returns a Future that resolves to a status map for the BlockStore.
Implementation
@override
/// Returns a [Future] that resolves to a status map for the [BlockStore].
Future<Map<String, dynamic>> getStatus() async {
try {
return {
'total_blocks': _blockIndex.length,
'total_size': _totalSize,
'pinned_blocks': _pinManager.pinnedBlockCount,
'path': path,
};
} catch (e) {
_logger.error('Failed to get status', e);
return {'total_blocks': 0, 'total_size': 0, 'pinned_blocks': 0};
}
}