Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Add default value for INVOKE_ALLOWED_METHODS
Browse files Browse the repository at this point in the history
  • Loading branch information
priojeetpriyom committed Dec 6, 2023
1 parent 8df754d commit 33f360f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker/example.env
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ LISK_APP_WS=ws://host.docker.internal:7887
# ENABLE_SNAPSHOT_ALLOW_INSECURE_HTTP=false
# ACCOUNT_BALANCE_UPDATE_BATCH_SIZE=1000
# INDEX_BLOCKS_QUEUE_SCHEDULED_JOB_MAX_COUNT=100000
# INVOKE_ALLOWED_METHODS=''
# INVOKE_ALLOWED_METHODS='dynamicReward_getExpectedValidatorRewards,token_hasUserAccount,token_getInitializationFees,interoperability_getMinimumMessageFee,txpool_getTransactionsFromPool'

# Moleculer jobs configuration
# JOB_INTERVAL_DELETE_SERIALIZED_EVENTS=0
Expand Down
2 changes: 1 addition & 1 deletion ecosystem.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ module.exports = {
// JOB_SCHEDULE_DELETE_FINALIZED_CCU_METADATA: '0 2 * * *',
// JOB_INTERVAL_TRIGGER_ACCOUNT_UPDATES: 0,
// JOB_SCHEDULE_TRIGGER_ACCOUNT_UPDATES: '*/15 * * * *',
// INVOKE_ALLOWED_METHODS: '',
// INVOKE_ALLOWED_METHODS: 'dynamicReward_getExpectedValidatorRewards,token_hasUserAccount,token_getInitializationFees,interoperability_getMinimumMessageFee,txpool_getTransactionsFromPool',
},
},
{
Expand Down
2 changes: 1 addition & 1 deletion ecosystem.jenkins.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ module.exports = {
ENABLE_DATA_RETRIEVAL_MODE: true,
ENABLE_INDEXING_MODE: true,
ENABLE_PERSIST_EVENTS: false,
// INVOKE_ALLOWED_METHODS: '',
// INVOKE_ALLOWED_METHODS: 'dynamicReward_getExpectedValidatorRewards,token_hasUserAccount,token_getInitializationFees,interoperability_getMinimumMessageFee,txpool_getTransactionsFromPool',
},
},
{
Expand Down
8 changes: 7 additions & 1 deletion services/blockchain-indexer/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,12 @@ config.estimateFees = {

config.invokeAllowedMethods = process.env.INVOKE_ALLOWED_METHODS
? String(process.env.INVOKE_ALLOWED_METHODS).split(',')
: [];
: [
'dynamicReward_getExpectedValidatorRewards',
'token_hasUserAccount',
'token_getInitializationFees',
'interoperability_getMinimumMessageFee',
'txpool_getTransactionsFromPool',
];

module.exports = config;

0 comments on commit 33f360f

Please sign in to comment.