Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Another way to get era points for a session #7

Open
sahilnanda1995 opened this issue Jan 20, 2020 · 0 comments
Open

Another way to get era points for a session #7

sahilnanda1995 opened this issue Jan 20, 2020 · 0 comments

Comments

@sahilnanda1995
Copy link
Member

Currently not working, but for future it will significantly reduce load. Need to keep a check on it with newer versions of the polkadot/api module.

"authoredBlocks": {
      "name": "AuthoredBlocks",
      "modifier": 1,
      "type": {
        "DoubleMap": {
          "hasher": "Blake2_256",
          "key1": "SessionIndex",
          "key2": "ValidatorId",
          "value": "u32",
          "key2Hasher": "Blake2_256"
        }
      },
      "fallback": "0x00000000",
      "documentation": [
        " For each session index, we keep a mapping of `T::ValidatorId` to the",
        " number of blocks authored by the given authority."
      ],
      "storage": {
        "method": "AuthoredBlocks",
        "prefix": "ImOnline",
        "section": "imOnline"
      }
    }
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant