From 91ef060003c134409b446dfdf0e6537bc339dc54 Mon Sep 17 00:00:00 2001 From: Hyunsoo Shin Date: Tue, 17 Dec 2024 11:17:24 +0900 Subject: [PATCH] [] Description moved to top --- kaiax/compress/impl/compress_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kaiax/compress/impl/compress_test.go b/kaiax/compress/impl/compress_test.go index 41b058a91..922994788 100644 --- a/kaiax/compress/impl/compress_test.go +++ b/kaiax/compress/impl/compress_test.go @@ -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 @@ -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)