@@ -94,11 +94,6 @@ const (
9494 // storeVersion is the current slotter layout used for the billy.Database
9595 // store.
9696 storeVersion = 1
97-
98- // conversionTimeWindow defines the period after the Osaka fork during which
99- // the pool will still accept and convert legacy blob transactions. After this
100- // window, all legacy blob transactions will be rejected.
101- conversionTimeWindow = time .Hour * 2
10297)
10398
10499// blobTxMeta is the minimal subset of types.BlobTx necessary to validate and
@@ -1451,37 +1446,15 @@ func (p *BlobPool) AvailableBlobs(vhashes []common.Hash) int {
14511446 return available
14521447}
14531448
1454- // preCheck performs the static validation upon the provided tx.
1455- //
1456- // This function is pure static and lock free.
1457- func (p * BlobPool ) preCheck (tx * types.Transaction ) error {
1458- var (
1459- head = p .head .Load ()
1460- version = types .BlobSidecarVersion0
1461- )
1462- if p .chain .Config ().IsOsaka (head .Number , head .Time ) {
1463- version = types .BlobSidecarVersion1
1464- }
1465- // Validate the transaction statically at first to avoid unnecessary
1466- // conversion. This step doesn't require lock protection.
1467- if err := p .ValidateTxBasics (tx ); err != nil {
1468- return err
1469- }
1470- if tx .BlobTxSidecar ().Version != version {
1471- return fmt .Errorf ("sidecar version is not supported, got: %d, want: %d" , tx .BlobTxSidecar ().Version , version )
1472- }
1473- return nil
1474- }
1475-
14761449// Add inserts a set of blob transactions into the pool if they pass validation (both
14771450// consensus validity and pool restrictions).
14781451func (p * BlobPool ) Add (txs []* types.Transaction , sync bool ) []error {
14791452 var (
1480- errs [] error = make ([]error , len (txs ))
1481- adds = make ([]* types.Transaction , 0 , len (txs ))
1453+ errs = make ([]error , len (txs ))
1454+ adds = make ([]* types.Transaction , 0 , len (txs ))
14821455 )
14831456 for i , tx := range txs {
1484- if errs [i ] = p .preCheck (tx ); errs [i ] != nil {
1457+ if errs [i ] = p .ValidateTxBasics (tx ); errs [i ] != nil {
14851458 continue
14861459 }
14871460 if errs [i ] = p .add (tx ); errs [i ] == nil {
0 commit comments