Developers Forum for XinFin XDC Network

David
David

Posted on • Updated on

[WIP] How can I get the list of 108 masternodes using RPC call.

I tried to get masternode candidates list using eth_getCandidates but I am not getting the complete list of 108 masternode candidates, even including the slashed nodes, I am getting different numbers, sometimes 105, 106, 102, 107 and so on. I tried using my private node and all the available public nodes hosted by xinfin network.

Discussion (7)

Collapse
gzliudan profile image
Daniel Liu

Please wait a few days until PR #294 is applied on xinfin network.

Collapse
david profile image
David Author

Thank you Daniel, do we have any ETA on when can we expect the PR to be merged, as I want to use this feature in one of the applications that I am building.

Collapse
gzliudan profile image
Daniel Liu

I'm not sure about the time. If you are in a hurry, you can use the latest code to build an RPC node for test.

Thread Thread
david profile image
David Author

Sorry, but can you help me with the steps to build the code from the PR that you have raised, I have never built the code to run a node. I have used docker or LocalDPOS steps mentioned in the XinFin-Node repos.

Thread Thread
gzliudan profile image
Daniel Liu • Edited on

For the github.com/XinFinOrg/XinFin-Node/ and xinfin network, you can modify the file github.com/XinFinOrg/XinFin-Node/b..., change the below line:

    (cd xdcchain && git checkout --detach 433c202a55a7ffd740f993a2e8799efe6797234a && make)
Enter fullscreen mode Exit fullscreen mode

to:

    (cd xdcchain && make)
Enter fullscreen mode Exit fullscreen mode
Thread Thread
david profile image
David Author

Hello, do I need to setup an archive node for this? I have setup a node using the steps that you gave, when I try to get the details using eth_getCandidates I keep on getting missing trie Node.

Collapse
nsable profile image
Neelam Sable

Hello David,
We hope that the above query is resolved, if the query still persists then please let us know about it so that the team can resolve it on priority. It will be grateful to get an update within 72 hours or else it will be considered resolved.
Thank You.