Qwinn1 / forktools

Several command line tools to greatly simplify CLI maintenance of one or many forks of Chia crypto coins
GNU General Public License v3.0
39 stars 8 forks source link

Add tool to query configured ports or ports in use for easy listing #4

Closed HoorayJorge closed 3 years ago

HoorayJorge commented 3 years ago

Often I just need a list of the ports currently being used, but its tedious to look them up. This can be for Farmr, fd-cli or updating UFW for running the node publically. Being able to query the list of a specific port type, like wallet_rpc or fullnode_port would be helpful. Alternatively a CSV-style list or some other structure could be generated or all ports.

Qwinn1 commented 3 years ago

Good idea. Perhaps I'll implement this by allowing forkports to take a forkname as a parameter, in which case it'll display the ports for that single fork as you suggest before scanning for conflicts for just that fork.

Qwinn1 commented 3 years ago

Would you say the new 'forkcheck' tool fulfills your request?

Qwinn1 commented 3 years ago

I'm going to assume yes and close this down. Let me know if the answer would have been no by opening another issue with whatever enhancement you were looking for that forkcheck doesn't currently satisfy. Thanks for the good suggestion. I hope you like the cross-checking against initial-config.yaml that I added in :)