Commit graph

2467 commits

Author SHA1 Message Date
johntaiko
d065dd2c3d
fix(taiko_genesis): update devnet Ontake fork hight (#302)
* fix: update devnet ontake hight

* Update core/taiko_genesis.go

Co-authored-by: Gavin Yu <gavin@taiko.xyz>

---------

Co-authored-by: David <david@taiko.xyz>
Co-authored-by: Gavin Yu <gavin@taiko.xyz>
2024-08-28 09:35:42 +00:00
David
c65e9b9a95
chore(taiko_genesis): update genesis JSONs (#301) 2024-08-26 04:35:27 +00:00
David
2134337035
chore(taiko_genesis): update genesis JSONs (#298)
* chore(taiko_genesis): update genesis JSONs

* feat: update `AnchorV2Selector`
2024-08-14 06:59:22 +00:00
David
882a6cd329
feat(taiko_genesis): update internal devnet genesis JSON (#296) 2024-08-08 04:14:10 +00:00
David
a875cc83b9
feat(core): changes based on the latest block.extradata format (#295) 2024-08-08 03:38:43 +00:00
David
217c9ec0f4
feat(taiko_genesis): update interanl devnet genesis JSON for ontake hardfork (#291) 2024-07-29 06:33:13 +00:00
David
83564ba6fc
feat(core): decode basefee params from block.extraData (#290)
* feat(core): decode basefee params from `block.extraData`

* feat: add `CalcBaseFeeOntake`
2024-07-29 06:07:53 +00:00
David
a748b914ab
feat(taiko_genesis): update interanl devnet genesis JSON for ontake hardfork (#288) 2024-07-28 06:06:05 +00:00
David
e6487f00ed
feat(core): introduce BasefeeSharingPctg in BlockMetadata (#287)
* feat(core): introduce `BasefeeSharingPctg` in `BlockMetadata`

* feat: update message

* feat: check BasefeeSharingPctg
2024-07-26 09:02:03 +00:00
Gavin Yu
b137b2ac11
feat(taiko_genesis): update internal devnet genesis JSON (#285) 2024-07-10 07:12:25 +00:00
David
f3a7fb6311
feat(miner): move TAIKO_MIN_TIP check to commitL2Transactions (#272) 2024-06-06 03:40:25 +00:00
Gavin Yu
9594e0a6a8
fix(txpool): fix the unit in a log (#266) 2024-06-05 09:37:45 +08:00
David
a29520e066
feat(txpool): introduce TAIKO_MIN_TIP env (#264) 2024-06-01 03:49:42 +00:00
David
ef40d46c0e
feat(txpool): update max fee check in ValidateTransaction() (#259) 2024-05-27 02:37:32 +00:00
David
87f42062d9
feat(txpool): update ValidateTransaction (#255)
* feat(txpool): update `ValidateTransaction`

* feat(txpool): update `ValidateTransaction`
2024-05-22 20:46:57 +08:00
David
78744374c1
chore(taiko_genesis): update genesis JSONs (#254) 2024-05-22 13:39:42 +08:00
David
91be6dd14a
chore(taiko_genesis): update genesis JSONs (#253) 2024-05-21 23:50:36 +08:00
David
ac9ccc8caf
chore(taiko_genesis): update genesis JSONs (#248) 2024-05-14 09:31:35 +08:00
David
9efa13f84a
chore(taiko_genesis): update genesis JSONs (#247) 2024-05-12 20:49:32 -07:00
David
dcb6c4e978
chore(taiko_genesis): update genesis JSONs (#246) 2024-05-10 19:56:01 -07:00
maskpp
4f368792dc
feat(consensus): improve VerifyHeaders for taiko consensus (#238)
* upgrade VerifyHeaders

* docs: improve comment wording

---------

Co-authored-by: David <david@taiko.xyz>
2024-05-08 08:34:27 +00:00
David
6cc43e1d9c
feat(txpool): update ValidateTransaction (#237) 2024-05-08 01:02:44 +08:00
David
471db71663
chore(taiko_genesis): update genesis JSONs (#236)
* chore(taiko_genesis): update genesis JSONs

* chore(taiko_genesis): update genesis JSONs
2024-05-08 00:08:09 +08:00
David
68308e3781
chore(taiko_genesis): update genesis JSONs (#233) 2024-05-07 16:06:33 +08:00
David
7e1b8b65a3 feat(all): changes based on Taiko protocol 2024-05-04 15:20:40 +08:00
rjl493456442
35e0525bf4 core, eth/protocols/snap, trie: fix cause for snap-sync corruption, implement gentrie (#29313)
This pull request defines a gentrie for snap sync purpose.

The stackTrie is used to generate the merkle tree nodes upon receiving a state batch. Several additional options have been added into stackTrie to handle incomplete states (either missing states before or after).

In this pull request, these options have been relocated from stackTrie to genTrie, which serves as a wrapper for stackTrie specifically for snap sync purposes.

Further, the logic for managing incomplete state has been enhanced in this change. Originally, there are two cases handled:

-    boundary node filtering
-    internal (covered by extension node) node clearing

This changes adds one more:

- Clearing leftover nodes on the boundaries.

This feature is necessary if there are leftover trie nodes in database, otherwise node inconsistency may break the state healing.
2024-04-17 07:22:00 +02:00
Martin HS
e343ddf9eb core/rawdb: add sanity-limit to header accessor (#29534) 2024-04-17 07:22:00 +02:00
Roberto Bayardo
51b479e564
core/txpool: elevate the 'already reserved' error into a constant (#29095)
declare the 'already reserved' error in errors.go
2024-02-27 13:27:50 +02:00
Delweng
45a272c7b9
core/txpool: no need to log loud rotate if no local txs (#29083)
* core/txpool: no need to run rotate if no local txs

Signed-off-by: jsvisa <delweng@gmail.com>

* Revert "core/txpool: no need to run rotate if no local txs"

This reverts commit 17fab17388.

Signed-off-by: jsvisa <delweng@gmail.com>

* use Debug if todo is empty

Signed-off-by: jsvisa <delweng@gmail.com>

---------

Signed-off-by: jsvisa <delweng@gmail.com>
2024-02-26 18:34:45 +02:00
Péter Szilágyi
63aaac8100
core/txpool/blobpool: reduce default database cap for rollout (#29090)
xcore/txpool/blobpool: reduce default database cap for rollout
2024-02-26 14:27:56 +02:00
Roberto Bayardo
32d4d6e616
core/txpool: reject blob txs with blob fee cap below the minimum (#29081)
* make blobpool reject blob transactions with fee below the minimum

* core/txpool: some minot nitpick polishes and unified error formats

* core/txpool: do less big.Int constructions with the min blob cap

---------

Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2024-02-26 11:06:52 +02:00
colin
b9ca38b735
core/txpool: fix typo (#29036)
* fix typos

* address comments
2024-02-21 10:00:01 +02:00
buddho
bba3fa9af9
core,eth,internal: fix typo (#29024) 2024-02-20 19:42:48 +08:00
buddho
7f5e96dc6c
core/txpool: fix typo (#29031) 2024-02-20 12:08:56 +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
Martin HS
ac0ff04460
core/vm, params: ensure order of forks, prevent overflow (#29023)
This PR fixes an overflow which can could happen if inconsistent blockchain rules were configured. Additionally, it tries to prevent such inconsistencies from occurring by making sure that merge cannot be enabled unless previous fork(s) are also enabled.
2024-02-19 16:29:59 +01: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
cui
5d984796af
core: using math.MaxUint64 instead of 0xffffffffffffffff (#29022) 2024-02-19 13:03:58 +01: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
Sina Mahmoodi
95741b1844
core: move genesis alloc types to core/types (#29003)
We want to use these types in public user-facing APIs, so they shouldn't be in core.

Co-authored-by: Felix Lange <fjl@twurst.com>
2024-02-16 19:05:33 +01:00
Péter Szilágyi
3c30de219f
core/txpool/blobpool: update the blob db with corruption handling (#29001)
Updates billy to a more recent version which is more robust in the face of corrupt data (e.g. after a hard crash)
2024-02-16 16:33:14 +01:00
colin
a193bb0c73
core/txpool/legacypool: remove a redundant heap.Init (#28910)
Co-authored-by: Martin HS <martin@swende.se>
Co-authored-by: Felix Lange <fjl@twurst.com>
2024-02-15 19:50:17 +01:00
bk
efddedc16c
core/txpool/blobpool: rename variables in comments (#28981)
Co-authored-by: Felix Lange <fjl@twurst.com>
2024-02-15 10:20:10 +01:00
Martin HS
8321fe2fda
tests: fix goroutine leak related to state snapshot generation (#28974)
---------

Co-authored-by: Felix Lange <fjl@twurst.com>
2024-02-14 17:02:56 +01:00
rjl493456442
fe91d476ba
all: remove the dependency from trie to triedb (#28824)
This change removes the dependency from trie package to triedb package.
2024-02-13 14:49:53 +01: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
Sina Mahmoodi
ac5aa672d3
internal/ethapi: add support for blobs in eth_fillTransaction (#28839)
This change adds support for blob-transaction in certain API-endpoints, e.g. eth_fillTransaction. A follow-up PR will add support for signing such transactions.
2024-02-08 19:53:32 +01:00
lightclient
2732fb10d2
params, core/forkid: add mainnet timestamp for Cancun (#28958)
* params: add cancun timestamp for mainnet

* core/forkid: add test for mainnet cancun forkid

* core/forkid: update todo tests for cancun
2024-02-08 19:36:38 +01:00
zoereco
2ab365f6d8
all: fix docstring names (#28923)
* fix wrong comment

* reviewers input

* Update log/handler_glog.go

---------

Co-authored-by: Martin HS <martin@swende.se>
2024-02-07 21:10:49 +01:00
lightclient
449d3f0d87
core,params: add holesky to default genesis function (#28903) 2024-02-07 17:19:14 +01:00