Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
turbo/jsonrpc: correction in fetching validatorByte in bor_snapshot.go (
#12360) **Fix: Outdated validatorByte Method in apply Function** The outdated validatorByte method in apply() (found in turbo/jsonrpc/bor_snapshot.go) caused the newVals array to remain empty. As a result, the validator's power was always set to 0, leading to incorrect RPC information. This bug affected the following RPC calls: - getSnapshot - bor_getSnapshotProposerSequence **Changes:** - Fixed the logic within the apply() function to ensure newVals is populated correctly. - Validators now retain their proper power, resulting in accurate responses for the affected RPC calls. This fix ensures that the snapshot and proposer sequence information are reflected correctly in RPC outputs.
- Loading branch information