mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-11-26 09:13:33 +03:00
if hf24 update operations
This commit is contained in:
parent
bce474147b
commit
3fa274e1a5
@ -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();
|
||||
|
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user