Documentation
¶
Index ¶
Constants ¶
View Source
const BorDefaultTxPoolPriceLimit = 25 * common.GWei
BorDefaultTxPoolPriceLimit defines the minimum gas price limit for bor to enforce txns acceptance into the pool.
Variables ¶
View Source
var DefaultConfig = Config{ SyncToNewPeersEvery: 5 * time.Second, ProcessRemoteTxnsEvery: 100 * time.Millisecond, CommitEvery: 15 * time.Second, LogEvery: 30 * time.Second, PendingSubPoolLimit: 10_000, BaseFeeSubPoolLimit: 30_000, QueuedSubPoolLimit: 30_000, MinFeeCap: 1, AccountSlots: 16, BlobSlots: 48, TotalBlobPoolLimit: 480, PriceBump: 10, BlobPriceBump: 100, NoGossip: false, MdbxWriteMap: false, }
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Disable bool DBDir string TracedSenders []string // List of senders for which txn pool should print out debugging info PendingSubPoolLimit int BaseFeeSubPoolLimit int QueuedSubPoolLimit int MinFeeCap uint64 AccountSlots uint64 // Number of executable transaction slots guaranteed per account BlobSlots uint64 // Total number of blobs (not txns) allowed per account TotalBlobPoolLimit uint64 // Total number of blobs (not txns) allowed within the txpool PriceBump uint64 // Price bump percentage to replace an already existing transaction BlobPriceBump uint64 //Price bump percentage to replace an existing 4844 blob txn (type-3) OverridePragueTime *big.Int // regular batch tasks processing SyncToNewPeersEvery time.Duration ProcessRemoteTxnsEvery time.Duration CommitEvery time.Duration LogEvery time.Duration //txpool db MdbxPageSize datasize.ByteSize MdbxDBSizeLimit datasize.ByteSize MdbxGrowthStep datasize.ByteSize MdbxWriteMap bool NoGossip bool // this mode doesn't broadcast any txns, and if receive remote-txn - skip it }
type DiscardReason ¶
type DiscardReason uint8
const ( NotSet DiscardReason = 0 // analog of "nil-value", means it will be set in future Success DiscardReason = 1 AlreadyKnown DiscardReason = 2 Mined DiscardReason = 3 ReplacedByHigherTip DiscardReason = 4 UnderPriced DiscardReason = 5 ReplaceUnderpriced DiscardReason = 6 // if a transaction is attempted to be replaced with a different one without the required price bump. FeeTooLow DiscardReason = 7 OversizedData DiscardReason = 8 InvalidSender DiscardReason = 9 NegativeValue DiscardReason = 10 // ensure no one is able to specify a transaction with a negative value. Spammer DiscardReason = 11 PendingPoolOverflow DiscardReason = 12 BaseFeePoolOverflow DiscardReason = 13 QueuedPoolOverflow DiscardReason = 14 GasUintOverflow DiscardReason = 15 IntrinsicGas DiscardReason = 16 RLPTooLong DiscardReason = 17 NonceTooLow DiscardReason = 18 InsufficientFunds DiscardReason = 19 NotReplaced DiscardReason = 20 // There was an existing transaction with the same sender and nonce, not enough price bump to replace DuplicateHash DiscardReason = 21 // There was an existing transaction with the same hash InitCodeTooLarge DiscardReason = 22 // EIP-3860 - transaction init code is too large TypeNotActivated DiscardReason = 23 // For example, an EIP-4844 transaction is submitted before Cancun activation InvalidCreateTxn DiscardReason = 24 // EIP-4844 & 7702 transactions cannot have the form of a create transaction NoBlobs DiscardReason = 25 // Blob transactions must have at least one blob TooManyBlobs DiscardReason = 26 // There's a limit on how many blobs a block (and thus any transaction) may have UnequalBlobTxExt DiscardReason = 27 // blob_versioned_hashes, blobs, commitments and proofs must have equal number BlobHashCheckFail DiscardReason = 28 // KZGcommitment's versioned hash has to be equal to blob_versioned_hash at the same index UnmatchedBlobTxExt DiscardReason = 29 // KZGcommitments must match the corresponding blobs and proofs BlobTxReplace DiscardReason = 30 // Cannot replace type-3 blob txn with another type of txn BlobPoolOverflow DiscardReason = 31 // The total number of blobs (through blob txns) in the pool has reached its limit NoAuthorizations DiscardReason = 32 // EIP-7702 transactions with an empty authorization list are invalid GasLimitTooHigh DiscardReason = 33 // Gas limit is too high ErrAuthorityReserved DiscardReason = 34 // EIP-7702 transaction with authority already reserved )
func (DiscardReason) String ¶
func (r DiscardReason) String() string
Click to show internal directories.
Click to hide internal directories.