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

x/slashing: use const for key prefixes #1990

Closed
ebuchman opened this issue Aug 12, 2018 · 0 comments
Closed

x/slashing: use const for key prefixes #1990

ebuchman opened this issue Aug 12, 2018 · 0 comments
Assignees

Comments

@ebuchman
Copy link
Member

Currently we just use the magic numbers 0x1 and 0x2. They're documented in the spec, but we should introduce:

const (
	KeyPrefixSigningInfo     = 0x1
	KeyPrefixSigningBitArray = 0x2
)

Also handle the 0x3 case if need be ala #1927 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants