eco-stake / restake

Auto-compounder script for Cosmos Validators using REStake
https://restake.app
MIT License
356 stars 307 forks source link

introduce new environment variable ONLY_OPERATORS. #753

Open PFC-developer opened 11 months ago

PFC-developer commented 11 months ago

this patch introduces a new flag to the bot. it attempts to only produce output on networks where it is an operator.

tombeynon commented 11 months ago

Thanks for doing this @PFC-developer - I've actually been thinking about making more of a change here. I assume this is for when you run restake for all chains (npm run autostake) right? Would it suit you if this only ran for chains that exist in your networks.local.json file? Seems like it would be more appropriate than running for every chain in Chain Registry.

PFC-developer commented 11 months ago

yep. i've got it set up in a cronjob, and frankly having an option saying

and yes.. being able to specify which chains to run (via networks.local is a good way) would be useful as well

tombeynon commented 11 months ago

Great, let me spend a bit of time on this over the next week or so and I'll get something sorted. I'll likely combine a verbosity setting to strip back the logs, and just running for the chains in networks.local.