Skip to content

Commit

Permalink
test: fix big blobs test
Browse files Browse the repository at this point in the history
  • Loading branch information
ninabarbakadze committed Dec 6, 2024
1 parent 4350f35 commit 4943be3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/test/big_blob_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ func (s *BigBlobSuite) TestErrBlobsTooLarge() {
}
testCases := []testCase{
{
name: "2 mebibyte blob",
blob: newBlobWithSize(2 * mebibyte),
name: "~ 1.9 mebibyte blob",
blob: newBlobWithSize(2_000_000),
want: blobtypes.ErrBlobsTooLarge.ABCICode(),
},
}
Expand Down
1 change: 1 addition & 0 deletions app/validate_txs.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func separateTxs(_ client.TxConfig, rawTxs [][]byte) ([][]byte, []*tx.BlobTx) {
func FilterTxs(logger log.Logger, ctx sdk.Context, handler sdk.AnteHandler, txConfig client.TxConfig, txs [][]byte) [][]byte {
// all transactions should be below the max tx size
maxTxSize := appconsts.MaxTxSize(ctx.BlockHeader().Version.App)
//nolint:prealloc
var txsBelowLimit [][]byte
for idx, tx := range txs {
if len(tx) > maxTxSize {
Expand Down

0 comments on commit 4943be3

Please sign in to comment.