Commit 9ce51098 authored by mdj33's avatar mdj33 Committed by vipwzw

improve

parent e4734823
...@@ -6,12 +6,13 @@ package para ...@@ -6,12 +6,13 @@ package para
import ( import (
"fmt" "fmt"
"github.com/33cn/chain33/types"
) )
func calcTitleHeightKey(title string, height int64) []byte { func calcTitleHeightKey(title string, height int64) []byte {
return []byte(fmt.Sprintf("TH-%s-%d", title, height)) return []byte(fmt.Sprintf("%s-TH-%s-%d", types.ConsensusParaTxsPrefix,title, height))
} }
func calcTitleLastHeightKey(title string) []byte { func calcTitleLastHeightKey(title string) []byte {
return []byte(fmt.Sprintf("LH-%s", title)) return []byte(fmt.Sprintf("%s-TLH-%s", types.ConsensusParaTxsPrefix,title))
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment