mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 13:16:42 +00:00
core/txpool/blobpool: fix overhead constant
This commit is contained in:
parent
38ed51c372
commit
681716a3f8
1 changed files with 1 additions and 4 deletions
|
|
@ -51,9 +51,6 @@ const (
|
|||
// transaction. There can be multiple of these embedded into a single tx.
|
||||
blobSize = params.BlobTxFieldElementsPerBlob * params.BlobTxBytesPerFieldElement
|
||||
|
||||
// proofSize is the size in bytes that each cell proof requires.
|
||||
proofSize = kzg4844.CellProofsPerBlob * 48
|
||||
|
||||
// txAvgSize is an approximate byte size of a transaction metadata to avoid
|
||||
// tiny overflows causing all txs to move a shelf higher, wasting disk space.
|
||||
txAvgSize = 4 * 1024
|
||||
|
|
@ -62,7 +59,7 @@ const (
|
|||
// has on transaction size. This is added to the slotter to avoid tiny
|
||||
// overflows causing all txs to move a shelf higher, wasting disk space. A
|
||||
// small buffer is added to the proof overhead.
|
||||
txBlobOverhead = kzg4844.CellProofsPerBlob*proofSize + 64
|
||||
txBlobOverhead = uint32(kzg4844.CellProofsPerBlob*len(kzg4844.Proof{}) + 64)
|
||||
|
||||
// txMaxSize is the maximum size a single transaction can have, outside
|
||||
// the included blobs. Since blob transactions are pulled instead of pushed,
|
||||
|
|
|
|||
Loading…
Reference in a new issue