From 405b353289fa7bf68fd52c8a359829e7f845aa75 Mon Sep 17 00:00:00 2001 From: Will Hester Date: Wed, 28 Aug 2024 13:26:31 +0100 Subject: [PATCH] stashing' --- go/ethadapter/beacon_client_test.go | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/go/ethadapter/beacon_client_test.go b/go/ethadapter/beacon_client_test.go index fad4294653..1423891201 100644 --- a/go/ethadapter/beacon_client_test.go +++ b/go/ethadapter/beacon_client_test.go @@ -5,13 +5,10 @@ import ( "testing" "github.com/ethereum/go-ethereum/crypto/kzg4844" - "github.com/ethereum/go-ethereum/params" "github.com/stretchr/testify/require" "github.com/ten-protocol/go-ten/go/common" ) -const spareBlobBits = 6 // = math.floor(math.log2(BLS_MODULUS)) % 8 - func TestBlobsFromSidecars(t *testing.T) { indices := []uint64{5, 7, 2} @@ -134,27 +131,6 @@ func makeTestBlobSidecar(index uint64) (IndexedBlobHash, *BlobSidecar) { return idh, &sidecar } -// Function to encode data into blobs -func encodeBlobs(data []byte) []kzg4844.Blob { - blobs := []kzg4844.Blob{{}} - blobIndex := 0 - fieldIndex := -1 - for i := 0; i < len(data); i += 31 { - fieldIndex++ - if fieldIndex == params.BlobTxFieldElementsPerBlob { - blobs = append(blobs, kzg4844.Blob{}) - blobIndex++ - fieldIndex = 0 - } - max := i + 31 - if max > len(data) { - max = len(data) - } - copy(blobs[blobIndex][fieldIndex*32+1:], data[i:max]) - } - return blobs -} - func createRollup(lastBatch int64) common.ExtRollup { header := common.RollupHeader{ LastBatchSeqNo: uint64(lastBatch),