Developers Forum for XinFin XDC Network

Discussion on: XDC Masternode Backup and Migration Procedure for v2.6.8 and Later

Collapse
pxinl444 profile image
PXI_Nl Author •

I slightly modified the verification commands so that they work cleanly in my environment.

In particular, XDPoS.GetSigners() was not available, while XDPoS.getSigners() was. Since the full signer list is very long, I changed it to:

XDPoS.getSigners().indexOf(eth.coinbase) >= 0
Enter fullscreen mode Exit fullscreen mode

This simply returns true if my masternode address is included in the current signer list.

The full set of checks I am now using is:

./xdc-attach.sh

eth.coinbase
eth.getCandidateStatus(eth.coinbase, "latest")
XDPoS.getSigners().indexOf(eth.coinbase) >= 0
net.peerCount
eth.blockNumber
Enter fullscreen mode Exit fullscreen mode

This makes it easy to confirm the node address, masternode status, signer inclusion, peer connectivity, and block progress.