additional daemon 0.21 modifications and some settings tweaks
This commit is contained in:
parent
5afdb31f36
commit
5cb965639f
4 changed files with 9 additions and 11 deletions
|
@ -10,9 +10,8 @@ import {
|
|||
NativeModules
|
||||
} from 'react-native';
|
||||
import { createStore, applyMiddleware, compose, combineReducers } from 'redux';
|
||||
import {
|
||||
StackNavigator, addNavigationHelpers
|
||||
} from 'react-navigation';
|
||||
import { createLogger } from 'redux-logger';
|
||||
import { StackNavigator, addNavigationHelpers } from 'react-navigation';
|
||||
import { AppNavigator } from './component/AppNavigator';
|
||||
import AppWithNavigationState from './component/AppNavigator';
|
||||
import { persistStore, autoRehydrate } from 'redux-persist';
|
||||
|
@ -80,6 +79,7 @@ const reducers = combineReducers({
|
|||
});
|
||||
|
||||
const bulkThunk = createBulkThunkMiddleware();
|
||||
const logger = createLogger({ collapsed: true });
|
||||
const middleware = [thunk, bulkThunk, reactNavigationMiddleware];
|
||||
|
||||
// eslint-disable-next-line no-underscore-dangle
|
||||
|
|
|
@ -49,18 +49,14 @@ class SplashScreen extends React.PureComponent {
|
|||
|
||||
updateStatus() {
|
||||
Lbry.status().then(status => {
|
||||
console.log(status);
|
||||
this._updateStatusCallback(status);
|
||||
});
|
||||
}
|
||||
|
||||
_updateStatusCallback(status) {
|
||||
const startupStatus = status.startup_status;
|
||||
// At the minimum, database, stream_identifier and wallet should be started before calling resolve
|
||||
const hasStarted = startupStatus.database &&
|
||||
startupStatus.wallet &&
|
||||
startupStatus.stream_identifier &&
|
||||
status.wallet.blocks_behind == 0;
|
||||
// At the minimum, wallet should be started and blocks_behind equal to 0 before calling resolve
|
||||
const hasStarted = startupStatus.wallet && status.wallet.blocks_behind <= 0;
|
||||
if (hasStarted) {
|
||||
// Wait until we are able to resolve a name before declaring
|
||||
// that we are done.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { AsyncStorage } from 'react-native';
|
||||
import { ACTIONS, SETTINGS } from 'lbry-redux';
|
||||
import { ACTIONS } from 'lbry-redux';
|
||||
|
||||
|
||||
const reducers = {};
|
||||
|
@ -18,6 +18,7 @@ reducers[ACTIONS.CLIENT_SETTING_CHANGED] = (state, action) => {
|
|||
});
|
||||
};
|
||||
|
||||
|
||||
export default function reducer(state = defaultState, action) {
|
||||
const handler = reducers[action.type];
|
||||
if (handler) return handler(state, action);
|
||||
|
|
|
@ -126,7 +126,8 @@ def start():
|
|||
|
||||
# TODO: specify components, initialise auth
|
||||
conf.settings.update({
|
||||
'components_to_skip': ['peer_protocol_server']
|
||||
'components_to_skip': ['peer_protocol_server', 'reflector'],
|
||||
'concurrent_announcers': 0
|
||||
})
|
||||
|
||||
log.info('Final Settings: %s', conf.settings.get_current_settings_dict())
|
||||
|
|
Loading…
Add table
Reference in a new issue