keymigrate: fix decoding of block-hash row keys (backport #8294) (#8295)

(cherry picked from commit 322bb460dd)
This commit is contained in:
mergify[bot]
2022-04-09 09:17:28 -07:00
committed by GitHub
parent 9edb87c5f8
commit e4d83ba2ad
3 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ func getLegacyPrefixKeys(val int) map[string][]byte {
"BlockPartTwo": []byte(fmt.Sprintf("P:%d:%d", val+2, val+val)),
"BlockCommit": []byte(fmt.Sprintf("C:%d", val)),
"SeenCommit": []byte(fmt.Sprintf("SC:%d", val)),
"BlockHeight": []byte(fmt.Sprintf("BH:%d", val)),
"BlockHeight": []byte(fmt.Sprintf("BH:%x", val)),
"Validators": []byte(fmt.Sprintf("validatorsKey:%d", val)),
"ConsensusParams": []byte(fmt.Sprintf("consensusParamsKey:%d", val)),
"ABCIResponse": []byte(fmt.Sprintf("abciResponsesKey:%d", val)),