-
-
Save emre/4e914ee242489fc1fa09d2b2320210ed to your computer and use it in GitHub Desktop.
top_100_witnesses_versions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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