From fbca36f95547d4cc194fb0d22e19bc4d3bc93367 Mon Sep 17 00:00:00 2001 From: vidhanarya Date: Tue, 29 Nov 2022 19:49:59 +0530 Subject: [PATCH] chore: remove unused GenerateValidBlockData from app package --- app/test_util.go | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/app/test_util.go b/app/test_util.go index 68c724006a..453ec93fd3 100644 --- a/app/test_util.go +++ b/app/test_util.go @@ -11,41 +11,8 @@ import ( banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" "github.com/stretchr/testify/require" tmrand "github.com/tendermint/tendermint/libs/rand" - core "github.com/tendermint/tendermint/proto/tendermint/types" - coretypes "github.com/tendermint/tendermint/types" ) -func GenerateValidBlockData( - t *testing.T, - txConfig client.TxConfig, - signer *types.KeyringSigner, - pfbCount, - normalTxCount, - size int, -) (coretypes.Data, error) { - rawTxs := GenerateManyRawWirePFB(t, txConfig, signer, pfbCount, size) - rawTxs = append(rawTxs, GenerateManyRawSendTxs(t, txConfig, signer, normalTxCount)...) - parsedTxs := parseTxs(txConfig, rawTxs) - - squareSize, totalSharesUsed := estimateSquareSize(parsedTxs, core.EvidenceList{}) - - if totalSharesUsed > int(squareSize*squareSize) { - parsedTxs = prune(txConfig, parsedTxs, totalSharesUsed, int(squareSize)) - } - - processedTxs, blobs, err := malleateTxs(txConfig, squareSize, parsedTxs, core.EvidenceList{}) - require.NoError(t, err) - - blockData := core.Data{ - Txs: processedTxs, - Evidence: core.EvidenceList{}, - Blobs: blobs, - SquareSize: squareSize, - } - - return coretypes.DataFromProto(&blockData) -} - // GenerateManyRawWirePFB creates many raw WirePayForBlob transactions. Using // negative numbers for count and size will randomize those values. count is // capped at 5000 and size is capped at 3MB. Going over these caps will result