core/txpool: note that UsedAndLeftSlots is optional now

This commit is contained in:
lightclient 2025-02-21 13:25:49 -07:00
parent 8d562a4c26
commit c5094df9f3
No known key found for this signature in database
GPG key ID: 657913021EF45A6A

View file

@ -206,7 +206,7 @@ type ValidationOptionsWithState struct {
// nonce gaps will be ignored and permitted.
FirstNonceGap func(addr common.Address) uint64
// UsedAndLeftSlots is a mandatory callback to retrieve the number of tx slots
// UsedAndLeftSlots is an optional callback to retrieve the number of tx slots
// used and the number still permitted for an account. New transactions will
// be rejected once the number of remaining slots reaches zero.
UsedAndLeftSlots func(addr common.Address) (int, int)