diff --git a/prover/db/db.go b/prover/db/db.go index 5a1f4a175..a86ae9ae0 100644 --- a/prover/db/db.go +++ b/prover/db/db.go @@ -9,7 +9,7 @@ import ( ) var ( - blockKeyPrefix = "block-" + blockKeyPrefix = "block" separator = "++" ) @@ -26,9 +26,8 @@ func BuildBlockKey(blockTimestamp uint64, blockNumber uint64) []byte { [][]byte{ []byte(blockKeyPrefix), []byte(strconv.Itoa(int(blockTimestamp))), - []byte(separator), []byte(strconv.Itoa(int(blockNumber))), - }, []byte{}) + }, []byte(separator)) } // BuildBlockValue will build a block value for a signed block diff --git a/prover/db/db_test.go b/prover/db/db_test.go index 80f6f2caa..edbf0b98f 100644 --- a/prover/db/db_test.go +++ b/prover/db/db_test.go @@ -10,7 +10,7 @@ import ( ) func Test_BuildBlockKey(t *testing.T) { - assert.Equal(t, []byte("block-1++300"), BuildBlockKey(1, 300)) + assert.Equal(t, []byte("block++1++300"), BuildBlockKey(1, 300)) } func Test_BuildBlockValue(t *testing.T) {