Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
xavier506 committed May 11, 2023
2 parents 666195b + d87a8b8 commit c57e31c
Show file tree
Hide file tree
Showing 42 changed files with 396 additions and 186 deletions.
3 changes: 2 additions & 1 deletion .env.jungle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ HAPI_EOS_BASE_ACCOUNT=baseaccount
HAPI_EOS_BASE_ACCOUNT_PASSWORD=PW...
HAPI_EOS_MECHANICS_ACCOUNT=eosmechatero
HAPI_EOS_MECHANICS_PASSWORD=PW...
HAPI_EOS_WALLET_URL=http://localhost:8888
HAPI_EOS_MECHANICS_CUSTOM_PERMISSION=
HAPI_EOS_WALLET_URL=http://wallet:8888
HAPI_EOS_BP_JSON_ON_CHAIN=false
HAPI_EOS_BP_JSON_ON_CHAIN_CONTRACT=
HAPI_EOS_BP_JSON_ON_CHAIN_TABLE=
Expand Down
3 changes: 2 additions & 1 deletion .env.lacchain
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ HAPI_EOS_BASE_ACCOUNT=baseaccount
HAPI_EOS_BASE_ACCOUNT_PASSWORD=PW...
HAPI_EOS_MECHANICS_ACCOUNT=eosmechanics
HAPI_EOS_MECHANICS_PASSWORD=PW...
HAPI_EOS_MECHANICS_CUSTOM_PERMISSION=
HAPI_EOS_MECHANICS_INCLUDE_TRANSACTION={"account":"writer","name":"run","authorization":[{"actor":"costarica","permission":"writer"}],"data":{}}
HAPI_EOS_WALLET_URL=http://localhost:8888
HAPI_EOS_WALLET_URL=http://wallet:8888
HAPI_EOS_BP_JSON_ON_CHAIN=false
HAPI_EOS_BP_JSON_ON_CHAIN_CONTRACT=
HAPI_EOS_BP_JSON_ON_CHAIN_TABLE=
Expand Down
3 changes: 2 additions & 1 deletion .env.libre
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ HAPI_EOS_BASE_ACCOUNT=baseaccount
HAPI_EOS_BASE_ACCOUNT_PASSWORD=PW...
HAPI_EOS_MECHANICS_ACCOUNT=eosmechatero
HAPI_EOS_MECHANICS_PASSWORD=PW...
HAPI_EOS_WALLET_URL=http://localhost:8888
HAPI_EOS_MECHANICS_CUSTOM_PERMISSION=
HAPI_EOS_WALLET_URL=http://wallet:8888
HAPI_EOS_BP_JSON_ON_CHAIN=false
HAPI_EOS_BP_JSON_ON_CHAIN_CONTRACT=producerjson
HAPI_EOS_BP_JSON_ON_CHAIN_TABLE=producerjson
Expand Down
5 changes: 3 additions & 2 deletions .env.libretestnet
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ HAPI_EOS_BASE_ACCOUNT=baseaccount
HAPI_EOS_BASE_ACCOUNT_PASSWORD=PW...
HAPI_EOS_MECHANICS_ACCOUNT=eosmechatero
HAPI_EOS_MECHANICS_PASSWORD=PW...
HAPI_EOS_WALLET_URL=http://localhost:8888
HAPI_EOS_MECHANICS_CUSTOM_PERMISSION=benchmark
HAPI_EOS_WALLET_URL=http://wallet:8888
HAPI_EOS_BP_JSON_ON_CHAIN=false
HAPI_EOS_BP_JSON_ON_CHAIN_CONTRACT=producerjson
HAPI_EOS_BP_JSON_ON_CHAIN_TABLE=producerjson
Expand Down Expand Up @@ -81,7 +82,7 @@ REACT_APP_EOS_BP_JSON_ON_CHAIN_SCOPE=producerjson
REACT_APP_SYNC_TOLERANCE_INTERVAL=180000
REACT_APP_TOKEN_SYMBOL=LIBRE
REACT_APP_NETWORK_URL=[{"label":"EOS","value":"https://eos.antelope.tools","mainnet":true,"pair":"eos","icon":"eos","order":1},{"label":"Proton","value":"https://proton.antelope.tools","mainnet":true,"pair":"proton","icon":"proton","order":2},{"label":"WAX","value":"https://wax.antelope.tools","mainnet":true,"pair":"wax","icon":"wax","order":3},{"label":"Telos","value":"https://telos.antelope.tools","mainnet":true,"pair":"telos","icon":"telos","order":4},{"label":"Libre","value":"https://libre.antelope.tools","mainnet":true,"pair":"libre","icon":"libre","order":5},{"label":"LACChain EOSIO","value":"https://lacchain.antelope.tools","mainnet":true,"pair":null,"icon":"lacchain","order":6},{"label":"Jungle4 Testnet","value":"https://jungle.antelope.tools","mainnet":false,"pair":"eos","icon":"jungle","order":1},{"label":"Proton Testnet","value":"https://proton-testnet.antelope.tools","mainnet":false,"pair":"proton","icon":"proton","order":2},{"label":"WAX Testnet","value":"https://wax-testnet.antelope.tools","mainnet":false,"pair":"wax","icon":"wax","order":3},{"label":"Telos Testnet","value":"https://telos-testnet.antelope.tools","mainnet":false,"pair":"telos","icon":"telos","order":4},{"label":"Libre Testnet","value":"https://libre-testnet.antelope.tools","mainnet":false,"pair":"libre","icon":"libre","order":5},{"label":"Ultra Testnet","value":"https://ultra-testnet.antelope.tools","mainnet":false,"pair":"ultra","icon":"ultra","order":6}]
REACT_APP_DISABLED_MENU_ITEMS=["/missed-blocks", "/cpu-benchmark","/block-distribution"]
REACT_APP_DISABLED_MENU_ITEMS=["/missed-blocks","/block-distribution"]
REACT_APP_BLOCK_EXPLORER_URL=https://wax-test.bloks.io/transaction/(transaction)
REACT_APP_STATE_HISTORY_ENABLED=false
REACT_APP_GOOGLE_ANALITIC_PAGE_ID=G-E6Y0EC9FT8
Expand Down
3 changes: 2 additions & 1 deletion .env.local
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ HAPI_EOS_BASE_ACCOUNT=baseaccount
HAPI_EOS_BASE_ACCOUNT_PASSWORD=PW...
HAPI_EOS_MECHANICS_ACCOUNT=eosmechanics
HAPI_EOS_MECHANICS_PASSWORD=PW...
HAPI_EOS_MECHANICS_CUSTOM_PERMISSION=
HAPI_EOS_MECHANICS_INCLUDE_TRANSACTION={"account":"writer","name":"run","authorization":[{"actor":"latamlink","permission":"writer"}],"data":{}}
HAPI_EOS_WALLET_URL=http://localhost:8888
HAPI_EOS_WALLET_URL=http://wallet:8888
HAPI_EOS_BP_JSON_ON_CHAIN=false
HAPI_EOS_BP_JSON_ON_CHAIN_CONTRACT=
HAPI_EOS_BP_JSON_ON_CHAIN_TABLE=
Expand Down
5 changes: 3 additions & 2 deletions .env.mainnet
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ HAPI_EOS_API_ENDPOINTS=["https://eos.edenia.cloud","https://api.main.alohaeos.co
HAPI_EOS_API_CHAIN_ID=aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906
HAPI_EOS_BASE_ACCOUNT=baseaccount
HAPI_EOS_BASE_ACCOUNT_PASSWORD=PW...
HAPI_EOS_MECHANICS_ACCOUNT=eosmechatero
HAPI_EOS_MECHANICS_ACCOUNT=
HAPI_EOS_MECHANICS_PASSWORD=PW...
HAPI_EOS_WALLET_URL=http://localhost:8888
HAPI_EOS_MECHANICS_CUSTOM_PERMISSION=
HAPI_EOS_WALLET_URL=http://wallet:8888
HAPI_EOS_BP_JSON_ON_CHAIN=false
HAPI_EOS_BP_JSON_ON_CHAIN_CONTRACT=
HAPI_EOS_BP_JSON_ON_CHAIN_TABLE=
Expand Down
5 changes: 3 additions & 2 deletions .env.proton
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ HAPI_EOS_API_ENDPOINTS=["https://proton.edenia.cloud","https://proton.eosusa.io"
HAPI_EOS_API_CHAIN_ID=384da888112027f0321850a169f737c33e53b388aad48b5adace4bab97f437e0
HAPI_EOS_BASE_ACCOUNT=baseaccount
HAPI_EOS_BASE_ACCOUNT_PASSWORD=PW...
HAPI_EOS_MECHANICS_ACCOUNT=eosmechatero
HAPI_EOS_MECHANICS_ACCOUNT=
HAPI_EOS_MECHANICS_PASSWORD=PW...
HAPI_EOS_WALLET_URL=http://localhost:8888
HAPI_EOS_MECHANICS_CUSTOM_PERMISSION=
HAPI_EOS_WALLET_URL=http://wallet:8888
HAPI_EOS_BP_JSON_ON_CHAIN=false
HAPI_EOS_BP_JSON_ON_CHAIN_CONTRACT=
HAPI_EOS_BP_JSON_ON_CHAIN_TABLE=
Expand Down
3 changes: 2 additions & 1 deletion .env.protontestnet
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ HAPI_EOS_BASE_ACCOUNT=baseaccount
HAPI_EOS_BASE_ACCOUNT_PASSWORD=PW...
HAPI_EOS_MECHANICS_ACCOUNT=eosmechatero
HAPI_EOS_MECHANICS_PASSWORD=PW...
HAPI_EOS_WALLET_URL=http://localhost:8888
HAPI_EOS_MECHANICS_CUSTOM_PERMISSION=
HAPI_EOS_WALLET_URL=http://wallet:8888
HAPI_EOS_BP_JSON_ON_CHAIN=false
HAPI_EOS_BP_JSON_ON_CHAIN_CONTRACT=
HAPI_EOS_BP_JSON_ON_CHAIN_TABLE=
Expand Down
5 changes: 3 additions & 2 deletions .env.telos
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ HAPI_EOS_API_ENDPOINTS=["https://telos.greymass.com","https://telos.eosphere.io"
HAPI_EOS_API_CHAIN_ID=4667b205c6838ef70ff7988f6e8257e8be0e1284a2f59699054a018f743b1d11
HAPI_EOS_BASE_ACCOUNT=eosmechatero
HAPI_EOS_BASE_ACCOUNT_PASSWORD=PW...
HAPI_EOS_MECHANICS_ACCOUNT=eosmechatero
HAPI_EOS_MECHANICS_ACCOUNT=
HAPI_EOS_MECHANICS_PASSWORD=PW...
HAPI_EOS_WALLET_URL=http://localhost:8888
HAPI_EOS_MECHANICS_CUSTOM_PERMISSION=
HAPI_EOS_WALLET_URL=http://wallet:8888
HAPI_EOS_BP_JSON_ON_CHAIN=false
HAPI_EOS_BP_JSON_ON_CHAIN_CONTRACT=producerjson
HAPI_EOS_BP_JSON_ON_CHAIN_TABLE=producerjson
Expand Down
3 changes: 2 additions & 1 deletion .env.telostestnet
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ HAPI_EOS_BASE_ACCOUNT=eosmechatero
HAPI_EOS_BASE_ACCOUNT_PASSWORD=PW...
HAPI_EOS_MECHANICS_ACCOUNT=eosmechatero
HAPI_EOS_MECHANICS_PASSWORD=PW...
HAPI_EOS_WALLET_URL=http://localhost:8888
HAPI_EOS_MECHANICS_CUSTOM_PERMISSION=
HAPI_EOS_WALLET_URL=http://wallet:8888
HAPI_EOS_BP_JSON_ON_CHAIN=false
HAPI_EOS_BP_JSON_ON_CHAIN_CONTRACT=producerjson
HAPI_EOS_BP_JSON_ON_CHAIN_TABLE=producerjson
Expand Down
3 changes: 2 additions & 1 deletion .env.ultratestnet
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ HAPI_EOS_FAUCET_ACCOUNT=1aa2aa3aa4ai
HAPI_EOS_FAUCET_ACCOUNT_PASSWORD=PW...
HAPI_EOS_MECHANICS_ACCOUNT=eosmechatero
HAPI_EOS_MECHANICS_PASSWORD=PW...
HAPI_EOS_MECHANICS_CUSTOM_PERMISSION=
HAPI_EOS_MECHANICS_INCLUDE_TRANSACTION=
HAPI_EOS_WALLET_URL=http://localhost:8888
HAPI_EOS_WALLET_URL=http://wallet:8888
HAPI_EOS_BP_JSON_ON_CHAIN=false
HAPI_EOS_BP_JSON_ON_CHAIN_CONTRACT=
HAPI_EOS_BP_JSON_ON_CHAIN_TABLE=
Expand Down
5 changes: 3 additions & 2 deletions .env.wax
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ HAPI_EOS_API_ENDPOINTS=["https://wax.api.eosnation.io","https://wax.edenia.cloud
HAPI_EOS_API_CHAIN_ID=1064487b3cd1a897ce03ae5b6a865651747e2e152090f99c1d19d44e01aea5a4
HAPI_EOS_BASE_ACCOUNT=baseaccount
HAPI_EOS_BASE_ACCOUNT_PASSWORD=PW...
HAPI_EOS_MECHANICS_ACCOUNT=eosmechatero
HAPI_EOS_MECHANICS_ACCOUNT=
HAPI_EOS_MECHANICS_PASSWORD=PW...
HAPI_EOS_WALLET_URL=http://localhost:8888
HAPI_EOS_MECHANICS_CUSTOM_PERMISSION=
HAPI_EOS_WALLET_URL=http://wallet:8888
HAPI_EOS_BP_JSON_ON_CHAIN=false
HAPI_EOS_BP_JSON_ON_CHAIN_CONTRACT=
HAPI_EOS_BP_JSON_ON_CHAIN_TABLE=
Expand Down
3 changes: 2 additions & 1 deletion .env.waxtestnet
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ HAPI_EOS_BASE_ACCOUNT=baseaccount
HAPI_EOS_BASE_ACCOUNT_PASSWORD=PW...
HAPI_EOS_MECHANICS_ACCOUNT=eosmechatero
HAPI_EOS_MECHANICS_PASSWORD=PW...
HAPI_EOS_WALLET_URL=http://localhost:8888
HAPI_EOS_MECHANICS_CUSTOM_PERMISSION=
HAPI_EOS_WALLET_URL=http://wallet:8888
HAPI_EOS_BP_JSON_ON_CHAIN=false
HAPI_EOS_BP_JSON_ON_CHAIN_CONTRACT=
HAPI_EOS_BP_JSON_ON_CHAIN_TABLE=
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy-libre-testnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ jobs:
HAPI_EOS_BASE_ACCOUNT_PASSWORD: ${{ secrets.HAPI_EOS_BASE_ACCOUNT_PASSWORD }}
HAPI_EOS_MECHANICS_ACCOUNT: ${{ secrets.HAPI_EOS_MECHANICS_ACCOUNT }}
HAPI_EOS_MECHANICS_PASSWORD: ${{ secrets.HAPI_EOS_MECHANICS_PASSWORD }}
HAPI_EOS_MECHANICS_CUSTOM_PERMISSION: 'benchmark'
HAPI_EOS_FAUCET_ACCOUNT_PASSWORD: ${{ secrets.HAPI_EOS_FAUCET_ACCOUNT_PASSWORD }}
GOOGLE_CREDENTIALS_JSON: ${{ secrets.GOOGLE_CREDENTIALS_JSON }}
HAPI_EOS_WALLET_URL: http://dashboard-wallet:8888
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ services:
HAPI_EOS_FAUCET_ACCOUNT_PASSWORD: '${HAPI_EOS_FAUCET_ACCOUNT_PASSWORD}'
HAPI_EOS_MECHANICS_ACCOUNT: '${HAPI_EOS_MECHANICS_ACCOUNT}'
HAPI_EOS_MECHANICS_PASSWORD: '${HAPI_EOS_MECHANICS_PASSWORD}'
HAPI_EOS_MECHANICS_CUSTOM_PERMISSION: '${HAPI_EOS_MECHANICS_CUSTOM_PERMISSION}'
HAPI_EOS_MECHANICS_INCLUDE_TRANSACTION: '${HAPI_EOS_MECHANICS_INCLUDE_TRANSACTION}'
HAPI_EOS_WALLET_URL: '${HAPI_EOS_WALLET_URL}'
HAPI_EOS_BP_JSON_ON_CHAIN: '${HAPI_EOS_BP_JSON_ON_CHAIN}'
Expand Down
2 changes: 2 additions & 0 deletions hapi/src/config/eos.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ module.exports = {
eosmechanics: {
account: process.env.HAPI_EOS_MECHANICS_ACCOUNT,
password: process.env.HAPI_EOS_MECHANICS_PASSWORD,
customPermission:
process.env.HAPI_EOS_MECHANICS_CUSTOM_PERMISSION || 'active',
includeTransaction: process.env.HAPI_EOS_MECHANICS_INCLUDE_TRANSACTION
? JSON.parse(process.env.HAPI_EOS_MECHANICS_INCLUDE_TRANSACTION)
: ''
Expand Down
6 changes: 5 additions & 1 deletion hapi/src/services/health-check-history.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ const updateEndpointsHealthHistory = async (endpoints, date) => {
`
const updates = endpoints.map(endpoint => ({
where: {
_and: [{ value: { _eq: endpoint.value } }, { date: { _eq: date } }]
_and: [
{ producer_id: { _eq: endpoint.producer_id } },
{ value: { _eq: endpoint.value } },
{ date: { _eq: date } }
]
},
_inc: {
successful_checks: endpoint.isWorking,
Expand Down
34 changes: 33 additions & 1 deletion hapi/src/services/producer.service.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { StatusCodes } = require('http-status-codes')

const { hasuraUtil, sequelizeUtil, producerUtil } = require('../utils')
const { eosConfig } = require('../config')
const { eosConfig, workersConfig } = require('../config')

const lacchainService = require('./lacchain.service')
const eosioService = require('./eosio.service')
Expand Down Expand Up @@ -59,6 +59,24 @@ const updateProducers = async (producers = []) => {
return insertedRows.insert_producer.returning
}

const updateProducersLog = async ({ lastUpdateAt, nextUpdateAt }) => {
const upsertMutation = `
mutation ($payload: [producers_list_update_log_insert_input!]!) {
insert_producers_list_update_log(objects: $payload, on_conflict: {constraint: producers_list_update_log_pkey, update_columns: [ last_update, next_estimated_update ]}) {
affected_rows
}
}
`

await hasuraUtil.request(upsertMutation, {
payload: {
id: 1,
last_update: lastUpdateAt,
next_estimated_update: nextUpdateAt
}
})
}

const syncProducers = async () => {
let producers = []

Expand All @@ -73,6 +91,7 @@ const syncProducers = async () => {

if (producers?.length) {
producers = await updateProducers(producers)
await saveEstimateNextUpdate(new Date())
await syncNodes(producers.slice(0, eosConfig.eosTopLimit))
await syncEndpoints()

Expand All @@ -82,6 +101,19 @@ const syncProducers = async () => {
}
}

const saveEstimateNextUpdate = async lastUpdateAt => {
const timeoutGetBPJSONs = 750
const timeoutGetProducers = eosConfig.apiEndpoints.length * 30
const timeoutSum = timeoutGetBPJSONs + timeoutGetProducers
const nextUpdateAt = new Date(lastUpdateAt)

nextUpdateAt.setSeconds(
nextUpdateAt.getSeconds() + workersConfig.syncProducersInterval + timeoutSum
)

await updateProducersLog({ lastUpdateAt, nextUpdateAt })
}

const getProducersSummary = async () => {
const [rows] = await sequelizeUtil.query(`
SELECT
Expand Down
74 changes: 25 additions & 49 deletions hapi/src/utils/eosmechanics.util.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,18 @@ const { eosConfig } = require('../config')

const eosUtil = require('./eos.util')

const cpu = async () => {
const actions = []

const transact = async actions => {
if (eosConfig.eosmechanics.includeTransaction) {
actions.push(eosConfig.eosmechanics.includeTransaction)
}

actions.push({
authorization: [
{
actor: eosConfig.eosmechanics.account,
permission: 'active'
}
],
account: eosConfig.eosmechanics.account,
name: 'cpu',
data: {}
})

const transaction = await eosUtil.transact(
actions,
eosConfig.eosmechanics.account,
eosConfig.eosmechanics.password
)

await new Promise((resolve) => setTimeout(() => resolve(), 1000))
const block = await eosUtil.getBlock(transaction.processed.block_num)

return {
Expand All @@ -34,18 +22,32 @@ const cpu = async () => {
}
}

const net = async (input = '') => {
const cpu = async () => {
const actions = []

if (eosConfig.eosmechanics.includeTransaction) {
actions.push(eosConfig.eosmechanics.includeTransaction)
}
actions.push({
authorization: [
{
actor: eosConfig.eosmechanics.account,
permission: eosConfig.eosmechanics.customPermission
}
],
account: eosConfig.eosmechanics.account,
name: 'cpu',
data: {}
})

return await transact(actions)
}

const net = async (input = '') => {
const actions = []

actions.push({
authorization: [
{
actor: eosConfig.eosmechanics.account,
permission: 'active'
permission: eosConfig.eosmechanics.customPermission
}
],
account: eosConfig.eosmechanics.account,
Expand All @@ -55,51 +57,25 @@ const net = async (input = '') => {
}
})

const transaction = await eosUtil.transact(
actions,
eosConfig.eosmechanics.account,
eosConfig.eosmechanics.password
)
await new Promise(resolve => setTimeout(() => resolve(), 500))
const block = await eosUtil.getBlock(transaction.processed.block_num)

return {
transaction,
block
}
return await transact(actions)
}

const ram = async () => {
const actions = []

if (eosConfig.eosmechanics.includeTransaction) {
actions.push(eosConfig.eosmechanics.includeTransaction)
}

actions.push({
authorization: [
{
actor: eosConfig.eosmechanics.account,
permission: 'active'
permission: eosConfig.eosmechanics.customPermission
}
],
account: eosConfig.eosmechanics.account,
name: 'ram',
data: {}
})

const transaction = await eosUtil.transact(
actions,
eosConfig.eosmechanics.account,
eosConfig.eosmechanics.password
)
await new Promise(resolve => setTimeout(() => resolve(), 500))
const block = await eosUtil.getBlock(transaction.processed.block_num)

return {
transaction,
block
}
return await transact(actions)
}

module.exports = {
Expand Down
5 changes: 4 additions & 1 deletion hapi/src/workers/producers.worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ const start = async () => {
settingService.syncEOSPrice,
workersConfig.syncExchangeRate
)
run('CPU WORKER', cpuService.worker, workersConfig.cpuWorkerInterval)

if (eosConfig.eosmechanics.account && eosConfig.eosmechanics.password) {
run('CPU WORKER', cpuService.worker, workersConfig.cpuWorkerInterval)
}

if (eosConfig.stateHistoryPluginEndpoint) {
run('SYNC STATS INFO', statsService.sync, workersConfig.syncStatsInterval)
Expand Down
Loading

0 comments on commit c57e31c

Please sign in to comment.