Repository navigation
fix(rpc)!: chain_isValidator answers for session validator accounts, not Aura keys, and refuses a value that does not decode exactly (fc-rpc-v2 2.0.1-dev) - #172
Merged
Conversation
…not Aura keys, and refuses a value that does not decode exactly (fc-rpc-v2 2.0.1-dev)
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
chain_isValidatorcompared the account againstpallet_aura::Authorities, the validators' Aura keys. Since spec 19 a validator is its account: an operator that registered its session keys from its account, with a key that is not the account, was reported as not a validator.Fixed
chain_isValidatorreadspallet_session::Validators(validator accounts) at the best block.contains_validatorusingdecode_all: a truncated value or one with trailing bytes is anInternalError, never a partial match.Documentation
privacymodule docs listprivacy_getSubtreeRoots, state that every endpoint reads the best block, and describe the proof gate as implemented:proof_slots(half the cores) at once, then a queue bounded byMAX_QUEUED_PROOFSandMAX_PROOF_WAIT. The docs citedMAX_CONCURRENT_PROOFS, which no longer exists.chain_isValidatoragainstSession::Validators.Version
fc-rpc-v22.0.0-dev → 2.0.1-dev, with a newCHANGELOG.md.Testing
cargo test -p fc-rpc-v2(50): storage key layout; absent value, empty set, member, non-member, truncated value, trailing bytes.cargo clippy -D warnings,cargo fmt --check.--devnode (spec 20):chain_isValidatoristruefor Alice andfalsefor Bob.