Skip to content

Instantly share code, notes, and snippets.

@emre
Created August 8, 2018 09:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emre/4e914ee242489fc1fa09d2b2320210ed to your computer and use it in GitHub Desktop.
Save emre/4e914ee242489fc1fa09d2b2320210ed to your computer and use it in GitHub Desktop.
top_100_witnesses_versions
from lightsteem.client import Client
from collections import defaultdict
DISABLED_WITNESS_SIGNING_KEY = "STM1111111111111111111111111111111114T1Anm"
def main():
c = Client()
stats = defaultdict(list)
for witness in c.get_witnesses_by_vote(None, 100):
if witness["signing_key"] == DISABLED_WITNESS_SIGNING_KEY:
continue
stats[witness["running_version"]].append(witness["owner"])
print(stats)
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment