Skip to content

Commit

Permalink
fix header
Browse files Browse the repository at this point in the history
  • Loading branch information
lukanus committed Mar 20, 2023
1 parent a7eca4c commit b97eaee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datastore/evidence/badger/blocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
)

const (
HeaderContentPrefix = "hc/"
HeaderContentPrefix = "hc"
maxSlotLag = 50
)

Expand Down Expand Up @@ -90,7 +90,7 @@ func (s *Datastore) getHeadersRange(ctx context.Context, slot, blockhash string)
dec := json.NewDecoder(readr)
var prefix []byte
if blockhash != "" {
prefix = []byte(strings.Join([]string{"/" + HeaderContentPrefix, slot, blockhash}, ""))
prefix = []byte(strings.Join([]string{"/" + HeaderContentPrefix, slot, blockhash}, "/"))
} else {
prefix = []byte(strings.Join([]string{"/" + HeaderContentPrefix, slot}, "/"))
}
Expand Down

0 comments on commit b97eaee

Please sign in to comment.