Skip to content

Commit

Permalink
Disable blobCount check for local txn (#8303)
Browse files Browse the repository at this point in the history
That should fix the hive tests as well. This change is keeping in line
with what happens for non-blob txs as well
  • Loading branch information
somnathb1 authored Sep 27, 2023
1 parent f99f326 commit adaba41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erigon-lib/txpool/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ func (p *TxPool) validateTx(txn *types.TxSlot, isLocal bool, stateCache kvcache.
}
return txpoolcfg.Spammer
}
if p.all.blobCount(txn.SenderID) > p.cfg.BlobSlots {
if !isLocal && p.all.blobCount(txn.SenderID) > p.cfg.BlobSlots {
if txn.Traced {
log.Info(fmt.Sprintf("TX TRACING: validateTx marked as spamming (too many blobs) idHash=%x slots=%d, limit=%d", txn.IDHash, p.all.count(txn.SenderID), p.cfg.AccountSlots))
}
Expand Down

0 comments on commit adaba41

Please sign in to comment.