cmd/devp2p: fix modulo in makeBlobTxs (#28970)

pull/28994/head
colin 9 months ago committed by GitHub
parent efddedc16c
commit 2a1d94bd1d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      cmd/devp2p/internal/ethtest/suite.go

@ -762,7 +762,7 @@ func (s *Suite) makeBlobTxs(count, blobs int, discriminator byte) (txs types.Tra
from, nonce := s.chain.GetSender(5)
for i := 0; i < count; i++ {
// Make blob data, max of 2 blobs per tx.
blobdata := make([]byte, blobs%2)
blobdata := make([]byte, blobs%3)
for i := range blobdata {
blobdata[i] = discriminator
blobs -= 1

Loading…
Cancel
Save