Commit Graph

72 Commits

Author SHA1 Message Date
emailtovamos
60bdc2539e pool: fail fast, disable by default, no interface 2024-10-16 13:56:48 +01:00
emailtovamos
0dd0bd7b38 pool: remove extra new lines 2024-10-15 18:25:12 +01:00
emailtovamos
f41bb13160 pool: refactoring, addressing comments 2024-10-15 12:50:58 +01:00
emailtovamos
7a929d6324 pool: refactor to overflow pool 2024-10-14 11:05:49 +01:00
emailtovamos
9c72c02502 pool: preallocate pool3 2024-09-26 16:03:23 +01:00
emailtovamos
a8959fe60e pool: minor refactors 2024-09-26 15:18:06 +01:00
emailtovamos
4e69ac4a0f pool: remove event and debug logs 2024-09-26 14:55:59 +01:00
emailtovamos
355dee9000 pool: edit tests and remove remaining pool2 logic 2024-09-26 14:21:36 +01:00
emailtovamos
6a6e09c849 pool: remove pool2 related code 2024-09-26 14:13:13 +01:00
emailtovamos
846e55b9a4 pool: remove pool2 from legacypool 2024-09-25 16:05:01 +01:00
emailtovamos
09575625db pool: heap map as pool3 2024-09-25 14:06:24 +01:00
emailtovamos
3e3c56b235 pool: address minor issues 2024-09-19 04:32:47 +01:00
emailtovamos
629af6dab4 pool: else ifs instead of ifs 2024-09-18 13:04:29 +01:00
emailtovamos
774e314096 pool: truly discard underpriced, Transfer after lock is over 2024-09-18 13:01:22 +01:00
emailtovamos
b818cb78db pool: transfer on block import and simplify it 2024-09-12 16:29:57 +01:00
emailtovamos
248bb6b0d6 pool: fastcache, interface, metrics modify 2024-09-11 15:57:06 +01:00
emailtovamos
0a5dbef9f4 pool: queued goes to 0 locally after this change 2024-09-06 17:19:56 +01:00
emailtovamos
0e61543954 test: requestPromoteExecutables after every enqueue for testing 2024-09-06 12:20:36 +01:00
emailtovamos
706a24eb2c pool: lint fix 2024-09-04 04:46:45 +01:00
emailtovamos
5f398db90a pool: pool2 can have 0 size 2024-09-03 16:57:21 +01:00
emailtovamos
8e6833cec4 pool: bug fix and test fix 2024-09-03 16:39:35 +01:00
emailtovamos
aeec0c7129 pool: remove unused criticalpathpool 2024-09-03 13:03:10 +01:00
emailtovamos
76d157d08b pool: set transfer time in config 2024-09-03 12:42:11 +01:00
emailtovamos
70ece9355a pool: flags for pool2 and 3 capacity 2024-08-29 16:10:59 +01:00
emailtovamos
069eaf22f7 pool: proper use of AsyncSendPooledTransactionHashes 2024-08-29 15:57:30 +01:00
emailtovamos
e45e7eb9c6 pool: include static in flatten 2024-08-29 08:03:45 +01:00
emailtovamos
bdb4cc2acd pool: lint 2024-08-29 06:49:28 +01:00
emailtovamos
40dcfcd776 pool: cleanup debug logs 2024-08-28 14:29:15 +01:00
emailtovamos
0692a99ea9 pool: fix the TestTransactionFutureAttack test 2024-08-28 14:26:16 +01:00
emailtovamos
253d9a566b pool: some cleanups 2024-08-27 07:58:38 +01:00
emailtovamos
6daecfb105 pool: bugfix:always drop drop and pool2 size 2024-08-27 07:24:00 +01:00
emailtovamos
ed2d1d7f8f pool: enqueue in pool2 & drop properly 2024-08-25 19:24:20 +01:00
emailtovamos
94a60a9006 pool: add underpriced to pool2 or 3 2024-08-23 09:11:59 +01:00
emailtovamos
6b4e16ba7b pool: make slots config 2024-08-21 15:50:59 +01:00
emailtovamos
5bb78b34be pool: minor refactor 2024-08-20 07:46:22 +01:00
emailtovamos
5faf41359a pool: add discarded ones to pool3 by default. 2024-08-02 13:05:05 +01:00
emailtovamos
4369e3d997 pool: refactor and bugfix 2024-08-01 15:01:28 +01:00
emailtovamos
4538e92dbb pool: remove unused function 2024-08-01 14:54:07 +01:00
emailtovamos
8655d30cb9 pool: remove comments, use queue not pool23 2024-08-01 14:51:18 +01:00
emailtovamos
f80ac01c95 pool: add static info and simplify transfer 2024-08-01 14:36:47 +01:00
emailtovamos
e30248be3a pool: optimise sending in reorg 2024-07-29 11:51:02 +01:00
emailtovamos
dfb046e852 txpool: incomplete pool2 and pool3 2024-07-16 05:49:06 +01:00
galaio
7bc5a3353d
txpool: limit max gas when mining is enabled; (#2435) 2024-05-09 15:54:31 +08:00
buddho
38db9bf4e2
BlobTx: implement EIP-4844 on BSC (#2279)
* ci: temp enable blobtx branch ci run;
* Switch ON blobpool & ensure Cancun hardfork can occur (#2223)
* feat: support blob storage & miscs; (#2229)
* chainconfig: use cancun fork for BSC;
* feat: fill WithdrawalsHash when BSC enable cancun fork;
* rawdb: support to CRUD blobs;
* freezer: support to freeze block blobs;
* blockchain: add blob cache & blob query helper;
* freezer: refactor addition table logic, add uts;
* blobexpiry: add more extra expiry time, and logs;
* parlia: implement IsDataAvailable function;
* blob: refactor blob transfer logic;
* blob: support config blob extra reserve;
* blockchian: support to import block with blob & blobGasFee; (#2260)
* blob: implement min&max gas price logic;
* blockchian: support import side chain;
* blobpool: reject the banned address;
* blockchain: add chasing head for DA check;
* params: update blob related config;
* blockchain: opt data available checking performance;
* params: modify blob related params;
* gasprice: support BEP-336 blob gas price calculate;
* blobTx: mining + brodcasting (#2253)
* blobtx mining pass (#2282)
* Sidecar fetching changes for 4844 (#2283)
* ci: temp enable blobtx branch ci run;
* Switch ON blobpool & ensure Cancun hardfork can occur (#2223)
* feat: support blob storage & miscs; (#2229)
* chainconfig: use cancun fork for BSC;
feat: fill WithdrawalsHash when BSC enable cancun fork;
* rawdb: support to CRUD blobs;
* freezer: support to freeze block blobs;
* blockchain: add blob cache & blob query helper;
* freezer: refactor addition table logic, add uts;
* blobexpiry: add more extra expiry time, and logs;
* parlia: implement IsDataAvailable function;
* blob: refactor blob transfer logic;
* blob: support config blob extra reserve;
* blockchian: support to import block with blob & blobGasFee; (#2260)
* blob: implement min&max gas price logic;
* blockchian: support import side chain;
* blobpool: reject the banned address;
* blockchain: add chasing head for DA check;
* params: update blob related config;
* blockchain: opt data available checking performance;
* params: modify blob related params;
* gasprice: support BEP-336 blob gas price calculate;
* fix failed check for WithdrawalsHash (#2276)
* eth: include sidecars in fitering of body
* core: refactor sidecars name
* eth: sidecars type refactor
* core: remove extra from bad merge
* eth: fix handlenewblock test after merge
* Implement eth_getBlobSidecars && eth_getBlobSidecarByTxHash (#2286)
* execution: add blob gas fee reward to system;
* syncing: support blob syncing & DA checking;
* naming: rename blobs to sidecars;
* fix the semantics of WithXXX (#2293)
* config: reduce sidecar cache to 1024 and rename (#2297)
* fix: Withdrawals turn into empty from nil when BlockBody has Sidecars (#2301)
* internal/api_test: add test case for eth_getBlobSidecars && eth_getBlobSidecarByTxHash (#2300)
* consensus/misc: rollback CalcBlobFee (#2306)
* flags: add new flags to override blobs' params;
* freezer: fix blob ancient save error;
* blobsidecar: add new sidecar struct with metadata; (#2315)
* core/rawdb: optimize write block with sidecars (#2318)
* core: more check for validity of sidecars
* mev: add TxIndex for mev bid (#2325)
* remove useless Config() (#2326)
* fix WithSidecars (#2327)
* fix: fix mined block sidecar issue; (#2328)
* fix WithSidecars (#2329)

---------
Co-authored-by: GalaIO <GalaIO@users.noreply.github.com>
Co-authored-by: buddho <galaxystroller@gmail.com>
Co-authored-by: Satyajit Das <emailtovamos@gmail.com>
Co-authored-by: Eric <45141191+zlacfzy@users.noreply.github.com>
Co-authored-by: zzzckck <152148891+zzzckck@users.noreply.github.com>
2024-03-22 22:37:47 +08:00
buddh0
411d5c5001 Merge tag 'v1.13.14' into cancun_code_merge_v1.13.12_v1.13.14 2024-03-08 15:36:25 +08:00
colin
b9ca38b735
core/txpool: fix typo (#29036)
* fix typos

* address comments
2024-02-21 10:00:01 +02:00
Péter Szilágyi
f4852b8ddc
core/txpool, eth, miner: retrieve plain and blob txs separately (#29026)
* core/txpool, eth, miner: retrieve plain and blob txs separately

* core/txpool: fix typo, no farming

* miner: farm all the typos

Co-authored-by: Martin HS <martin@swende.se>

---------

Co-authored-by: Martin HS <martin@swende.se>
2024-02-20 11:37:23 +02:00
Péter Szilágyi
6fb0d0992b
core/txpool, miner: speed up blob pool pending retrievals (#29008)
* core/txpool, miner: speed up blob pool pending retrievals

* miner: fix test merge issue

* eth: same same

* core/txpool/blobpool: speed up blobtx creation in benchmark a bit

* core/txpool/blobpool: fix linter

---------

Co-authored-by: Martin Holst Swende <martin@swende.se>
2024-02-19 15:59:40 +02:00
Péter Szilágyi
593e303485
core/txpool, eth, miner: pre-filter dynamic fees during pending tx retrieval (#29005)
* core/txpool, eth, miner: pre-filter dynamic fees during pending tx retrieval

* miner: fix typo

* core/txpool: handle init-error in blobpool without panicing

---------

Co-authored-by: Martin Holst Swende <martin@swende.se>
2024-02-17 13:37:14 +02:00
Ng Wei Han
beb2954fa4
core/txpool/legacypool: use uint256.Int instead of big.Int (#28606)
This change makes the legacy transaction pool use of `uint256.Int` instead of `big.Int`. The changes are made primarily only on the internal functions of legacypool. 

---------

Co-authored-by: Martin Holst Swende <martin@swende.se>
2024-02-13 10:10:11 +01:00