Merge pull request #580 from tinyema/fix-trtl-daemon

fix trtl daemon get_info
This commit is contained in:
dvandal
2020-09-28 10:33:49 -04:00
committed by GitHub

View File

@@ -567,7 +567,7 @@ function getNetworkData (callback, rpcMode) {
// Try get_info RPC method first if available (not all coins support it) // Try get_info RPC method first if available (not all coins support it)
if (rpcMode === 'get_info') { if (rpcMode === 'get_info') {
apiInterfaces.rpcDaemon('get_info', {}, function (error, reply) { apiInterfaces.rpcDaemon('get_info', {}, function (error, reply) {
if (error) { if (error || !reply) {
getNetworkData(callback, 'getlastblockheader'); getNetworkData(callback, 'getlastblockheader');
return; return;
} else { } else {