diff --git a/src/providers/steem/dsteem.js b/src/providers/steem/dsteem.js index cd21336f4..f46b111df 100644 --- a/src/providers/steem/dsteem.js +++ b/src/providers/steem/dsteem.js @@ -48,6 +48,13 @@ export const checkClient = async () => { client = new Client(selectedServer, { timeout: 5000, }); + client.database.getVersion().then((res) => { + if (res.blockchain_version !== '0.23.0') { + // true: eclipse rebranded rpc nodes + // false: default old nodes (not necessary to call for old nodes) + client.updateOperations(true); + } + }); }; checkClient(); diff --git a/src/screens/settings/container/settingsContainer.js b/src/screens/settings/container/settingsContainer.js index c0c93a8ef..93667c791 100644 --- a/src/screens/settings/container/settingsContainer.js +++ b/src/screens/settings/container/settingsContainer.js @@ -1,7 +1,7 @@ import React, { Component } from 'react'; import { Platform } from 'react-native'; import { connect } from 'react-redux'; -import { Client } from '@hvieio/dhive'; +import { Client } from '@hiveio/dhive'; import VersionNumber from 'react-native-version-number'; import Config from 'react-native-config'; import { injectIntl } from 'react-intl';