added support for customizing daemon api cmds [getmasternodecount only so far]

This commit is contained in:
joeuhren
2019-10-09 13:04:32 -06:00
parent 3d6fc2923b
commit e645ee8635
4 changed files with 75 additions and 47 deletions
+11 -1
View File
@@ -207,5 +207,15 @@
// "address": "EUzgbt1r5AFzoZXK6WgTzM8kBBPJU1SX8E"
// }
//]
"burned_coins": []
"burned_coins": [],
// Customized API commands
// Not all blockchains utilize the same rpc cmds for accessing the internal daemon api
// Leave the value blank for any cmd that should not be used
// The following cmd-line calls to the daemon can be overridden:
//
// masternode_count: This should return an array of masternode counts where one key in the array must be named "total" and one key must be named "enabled" which are used to determine how many masternodes are offline (not enabled)
"api_cmds": {
"masternode_count": "getmasternodecount"
}
}