mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 14:52:17 +00:00
lite/dbprovider: return ok instead of true
This commit is contained in:
parent
9d9d22205e
commit
77379e0cda
@ -258,14 +258,15 @@ func parseKey(key []byte) (chainID string, height int64, part string, ok bool) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func parseSignedHeaderKey(key []byte) (chainID string, height int64, ok bool) {
|
func parseSignedHeaderKey(key []byte) (chainID string, height int64, ok bool) {
|
||||||
chainID, height, part, _ := parseKey(key)
|
var part string
|
||||||
|
chainID, height, part, ok = parseKey(key)
|
||||||
if part != "sh" {
|
if part != "sh" {
|
||||||
return "", 0, false
|
return "", 0, false
|
||||||
}
|
}
|
||||||
return chainID, height, true
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func parseChainKeyPrefix(key []byte) (chainID string, height int64, ok bool) {
|
func parseChainKeyPrefix(key []byte) (chainID string, height int64, ok bool) {
|
||||||
chainID, height, _, _ = parseKey(key)
|
chainID, height, _, ok = parseKey(key)
|
||||||
return chainID, height, true
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user