Skip to content

Commit

Permalink
[] Description moved to top
Browse files Browse the repository at this point in the history
  • Loading branch information
hyunsooda committed Dec 17, 2024
1 parent a05a813 commit 91ef060
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions kaiax/compress/impl/compress_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,6 @@ func TestCompressModule(t *testing.T) {
}

func TestRewind(t *testing.T) {
var (
nBlocks = 100
setHeadTo = 55
mCompress, dbm, headers, bodies, receipts = runCompress(t, nBlocks)
)

// Scenario Description:
// 1. `setHead` invoked targeting block number 55
// - Removed origin data from 100 to 55
Expand Down Expand Up @@ -107,6 +101,12 @@ func TestRewind(t *testing.T) {
Chunks = C1|C2|C3|C4|C5|C6|C7|C8|C9|C10
*/

var (
nBlocks = 100
setHeadTo = 55
mCompress, dbm, headers, bodies, receipts = runCompress(t, nBlocks)
)

for i := nBlocks - 1; i >= setHeadTo; i-- {
num := uint64(i)
hash := dbm.ReadCanonicalHash(num)
Expand Down

0 comments on commit 91ef060

Please sign in to comment.