mirror of
https://github.com/luxfi/evm.git
synced 2026-09-24 00:27:44 +00:00
perf: increase txpool limits + reduce block delay for high throughput
- AccountSlots: 16 → 4096 (executable per account) - AccountQueue: 64 → 16384 (queued per account) - GlobalSlots: 5120 → 65536 - GlobalQueue: 1024 → 16384 - minBlockBuildingRetryDelay: 500ms → 1ms Before: 10 TPS, 1 tx/block After: 57 TPS, up to 173 txs/block, 5.7 blocks/sec The old AccountQueue=64 hard-capped blocks at 64 txs.
This commit is contained in:
@@ -176,10 +176,10 @@ var DefaultConfig = Config{
|
||||
PriceLimit: 1,
|
||||
PriceBump: 10,
|
||||
|
||||
AccountSlots: 16,
|
||||
GlobalSlots: 4096 + 1024, // urgent + floating queue capacity with 4:1 ratio
|
||||
AccountQueue: 64,
|
||||
GlobalQueue: 1024,
|
||||
AccountSlots: 4096,
|
||||
GlobalSlots: 65536, // urgent + floating queue capacity with 4:1 ratio
|
||||
AccountQueue: 16384,
|
||||
GlobalQueue: 16384,
|
||||
|
||||
Lifetime: 10 * time.Minute,
|
||||
}
|
||||
|
||||
@@ -209,7 +209,7 @@ github.com/luxfi/crypto v1.17.45 h1:uGK0y4+aLipE/M0YIQ5hcsWv0ZG0E4cPv03a94K/eLE=
|
||||
github.com/luxfi/crypto v1.17.45/go.mod h1:GnAkhQ7HNs3X0Tzx5nOONS3kl0yRmWHbDcRO5ffILsg=
|
||||
github.com/luxfi/database v1.17.44 h1:hfiTls7sqbweW+o4iaZqB8P997paC+vpgWmhN6v5MJ0=
|
||||
github.com/luxfi/database v1.17.44/go.mod h1:6Ey5y3I0WNLHbxIlIdFqUuKfBg+b0fAgTA8FgRgQ8zg=
|
||||
github.com/luxfi/fhe v1.7.6 h1:zEP6I0+kJ9trWS/oeVF5X+l5ZxxmlhEefZ3nn6gZqis=
|
||||
github.com/luxfi/fhe v1.7.6 h1:H2WqsWa/YoeVjDa2EjMtLMyep3MqJgS/rnBwjZSGMcw=
|
||||
github.com/luxfi/fhe v1.7.6/go.mod h1:evKiXq9Kf7d1SttKZt7ItBAhZ1fQ6O3+iXsD1lw/RYo=
|
||||
github.com/luxfi/filesystem v0.0.1 h1:VZ6xMFKaAPBW/ddlMsDnI2G0VU1lV5rYaVcW5d+KwEY=
|
||||
github.com/luxfi/filesystem v0.0.1/go.mod h1:OQVSU6XNwqrr1AI+MqkID2taHUclx7NYmmr3svgttec=
|
||||
@@ -237,7 +237,7 @@ github.com/luxfi/node v1.23.4 h1:NzARkjbFUtlHyMEqSFQ0VeQRKF5eGWWwfQA7PO4f9VQ=
|
||||
github.com/luxfi/node v1.23.4/go.mod h1:eSzDGb6N60yHIANLmU5l8uRLlrTzVGq9yvwgITGeWkU=
|
||||
github.com/luxfi/p2p v1.19.2 h1:uqZq7ofmEDbXlTkv1QThtci01Q+dmDkNmAPeORIyP8E=
|
||||
github.com/luxfi/p2p v1.19.2/go.mod h1:tI9Bt1R0ouvVtJvXG4e20GlGeV4AR230k4mFF9Vglzk=
|
||||
github.com/luxfi/precompile v0.5.6 h1:d6qHVpRV1Nct97BxRpLuBQvlYmlg53sleGtq+iRWtyc=
|
||||
github.com/luxfi/precompile v0.5.6 h1:aP1Il3vS6px1D4DtD0ub+uoLxdfxMu3cl1WCZjLhLYg=
|
||||
github.com/luxfi/precompile v0.5.6/go.mod h1:Jz14VhQrU90mVgm/nTStQHdq8cLSOBHMF9UpJQjPFec=
|
||||
github.com/luxfi/protocol v0.0.2 h1:TAuXMm1K4VDpG3B3brq1EE9Lb7XlbhQmVBObskgNhmc=
|
||||
github.com/luxfi/protocol v0.0.2/go.mod h1:Yjn2VRwn5PXim0+JTalAyrVG6YbmuSnYOfeUXSbAsqA=
|
||||
|
||||
Reference in New Issue
Block a user