Comments (3)
Because the explorer is meant to be somewhat generic, you will need to pay attention to which options are available in the settings.json file and possibly do some trial-and-error to get it working just right for your coin.
The coin supply value is controlled by the sync.supply setting which you can find in the settings.json file here:
The default setting is to the use the getinfo
cmd which can also be configured from the api_cmds.getinfo setting here:
I would recommend that you try running the getinfo
cmd in your wallet directly and see if A) it works at all since many coins no longer use the getinfo
cmd and B) if it does work, does it return a value that corresponds to the coin supply value?
If it isn't already working then most likely you will need to change how the coin supply is derived. One option is that if the getinfo
cmd doesn't work, you can check if the -getinfo
cmd is available and if so, you can change the api_cmds.getinfo cmd to -getinfo
. If that isn't available then probably try the next sync.supply option which uses the getblockchaininfo
cmd to get the coin supply. Again, test that cmd in your wallet first to make sure it seems right, because if you don't see the value you want there, then it's not the correct option for your coin.
If you don't want to play around with checking wallet cmds, you can always just set the sync.supply setting to COINBASE which retrieves the coin supply from the explorer database instead of the wallet.
After changing any settings in the settings.json file, you will need to stop and restart the explorer for the changes to take effect. Also note that the coin supply value is populated at the very beginning of the block sync so you will also need to run another block sync to check if the coin supply populates correctly after that or not.
As for the masternode count panel not populating, the data is pulled from the getmasternodecount
cmd by default. Similar to the getinfo cmd, you should run the getmasternodecount
cmd in your wallet directly to see if that is the cmd that your wallet uses to get the masternode count. The return data should ideally look something like this:
{
"total": 101,
"stable": 100,
"obfcompat": 100,
"enabled": 100,
"inqueue": 93,
"ipv4": 35,
"ipv6": 66,
"onion": 0
}
There were some masternode improvement changes posted less than a week ago which now also work with a masternode count that looks more like this:
98 / 100
That format must be the enabled count / total masternode count.
Let me know if you have any other questions, but ultimately you will need to do some trial-and-error to give the explorer the correct cmds that work with your coin.
from eiquidus.
Thanks, it works nice for supply and masternode count
And for showing up masternode list here what do I need to change?
?
from eiquidus.
Have you tried a masternode sync with npm run sync-masternodes
? If that doesn't work you will need to change the api_cmds.getmasternodelist
setting to whatever your coin wallets most detailed masternode list cmd is. The ouput should ideally look something like this:
[
{
"rank": 95,
"network": "ipv6",
"txhash": "c53486cf2608099736c0d561448ef64a1b8e4021d5a479a72cfbf582f48c4da2",
"outidx": 1,
"status": "ENABLED",
"addr": "EU2sWukK7KJiTRPCmT8XPu21DxBdidUtdi",
"version": 70914,
"lastseen": 1704843885,
"activetime": 10275702,
"lastpaid": 1704843550
},
{
"rank": 96,
"network": "ipv4",
"txhash": "6141813996f26e65eb3bdc63b375c640c5372731f98ce570a72804b2125ee052",
"outidx": 1,
"status": "ENABLED",
"addr": "EbeqTtZe57uqCYJjSYMtNtV4chXsuuoiEY",
"version": 70914,
"lastseen": 1704843815,
"activetime": 25414145,
"lastpaid": 1704840449
},
{
"rank": 97,
"network": "ipv6",
"txhash": "c78fe21c0131c5146e4c121de62f712d6a775089954dfd8b88a15637b8b14310",
"outidx": 0,
"status": "ENABLED",
"addr": "ESA7vLuttECENnZRLNqL74ryQs2GNNyMRu",
"version": 70914,
"lastseen": 1704844153,
"activetime": 25512823,
"lastpaid": 1704840986
}
]
If you cannot get it working, feel free to post a sample of the ouput from your coins masternode list cmd that I can review.
from eiquidus.
Related Issues (20)
- Help to add a new exchange file in the system HOT 2
- [Feature Request] Extending the current api explorer to support light wallets up to trezor codebook v2. HOT 3
- error on running HOT 1
- Coin Supply issue HOT 2
- explorer not executing the /etc/getlasttxs/0 command after loading the main index page HOT 5
- logo does not appear in the market, address tabs HOT 2
- the list of masternodes, lists a maximum of 4388 masternodes HOT 7
- add getalldifficulty for the api for MateableCoin HOT 3
- Call to /api/getdifficulty comes up with error HOT 2
- Explorer shows a line for POS difficulty when it's a POW coin HOT 2
- unspent utxo HOT 2
- RangeError: Maximum call stack size exceeded HOT 21
- API listed local IP address HOT 8
- masternode not showing HOT 1
- Sync issue with coin Social Send HOT 3
- Saving addresses as base58 vs Bech32 HOT 2
- Syncings by Cron dont work HOT 4
- Transactions are not showing the correct amount
- README is missing instructions on how to change bind address HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eiquidus.