if i have 2 nodes, one ETH and one ETC, and I am writing a program to use these nodes, how can i determine which node I am using at any given time?
the best i can come up with is to check a known block after the fork and simply compare # of tx. I know how many tx are in that block on both chains, so i can differentiate that way.
this seems clunky. is there a better way to do this?
Edit: this is not a duplicate of "Does ETH and ETC uses the same network ID?" because i am not asking about the network id. i am asking about the network as a whole. eth/etc share a network id of 1
for the main network.
net_version
do the trick?net_version
returns1
for both (as expected). is there no way to do it besides the way i described (comparing 2 known blocks)?