* internal/ethapi: eth_call block parameter is optional (#28165)
So apparently in the spec the base block parameter of eth_call is optional.
I agree that "latest" is a sane default for this that most people would use.
* chore: auto version bump [bot]
---------
Co-authored-by: Sina Mahmoodi <1591639+s1na@users.noreply.github.com>
Co-authored-by: colinlyguo <colinlyguo@users.noreply.github.com>
* feat: update L2 base fee formula
* update 1559 unit test
* use current block's base fee in txpool
* fix unit test
* Revert "use current block's base fee in txpool"
This reverts commit 8a7d7ff87d6a9fb5124d72767c9ca24302673752.
* feat: allow changing L1 synced height via RPC/CLI
* chore: auto version bump [bot]
* fix typos
* add height validity check
* change implementation
* moved hotfix apis from ScrollAPI to PrivateAdminAPI
* change namespace from scroll to admin
* fix bugs
* add locks
* add a lock to protect latestProcessedBlock and db state
* revert some changes
* remove lock and use atomic in latestProcessedBlock
* fix CI
* tweak
* use cas in updating latestProcessedBlock
* renaming
* also update sync height in error paths
* fix a bug
* use mutex lock
---------
Co-authored-by: colinlyguo <colinlyguo@users.noreply.github.com>
* feat(tx pool): fast reject transactions that cannot fit into a block
* add a TestValidateTxBlockSize unit test
* chore: auto version bump [bot]
---------
Co-authored-by: colinlyguo <colinlyguo@users.noreply.github.com>
* ++
* upgrade go lint version
* lint
* remove a useless "`"
* Update l2geth_ci.yml
---------
Co-authored-by: Ömer Faruk Irmak <omerfirmak@gmail.com>
Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
Co-authored-by: colin <102356659+colinlyguo@users.noreply.github.com>
* feat(txpool): add more logs to `runReorg`
* chore: auto version bump [bot]
* improve
* chore: auto version bump [bot]
---------
Co-authored-by: HAOYUatHZ <HAOYUatHZ@users.noreply.github.com>
Co-authored-by: colin <102356659+colinlyguo@users.noreply.github.com>
Co-authored-by: Zhang Zhuo <mycinbrin@gmail.com>
Co-authored-by: Xi Lin <zimpha@gmail.com>
* feat(tx-pool): fast reject known skipped txs (#1001)
* feat(tx-pool): fast reject known skipped txs
* fix make lint
* add miner flag to tx pool
* bump version
* fix(rollup-verifier): delete committed batch metadata when reverting a batch
* chore: auto version bump [bot]
* remove a comment
---------
Co-authored-by: colinlyguo <colinlyguo@users.noreply.github.com>
* fix(l2geth-verifier): only check the last batch of each bundle
* refactor function comments
* add more logs to debug
* fix the bug
* Revert "add more logs to debug"
This reverts commit 4befe9fe739275988b4bf34999bd1aad4d7a1d0e.
* tweak
* TestValidateBatchInFinalizeByBundle
* update da-codec dependency
* move rawdb.WriteFinalizedBatchMeta outside the loop
* use batch writer
* change log.Crit to log.Error
* fix(tracing): fix error handling in `fillBlockTrace`
* chore: auto version bump [bot]
* chore: auto version bump [bot]
---------
Co-authored-by: HAOYUatHZ <HAOYUatHZ@users.noreply.github.com>
* feat(txpool): implement StatsWithMinBaseFee
* feat(gpo): use StatsWithMinBaseFee to filter out tx below the current blocks base fee
* feat(les/txpool): implement StatsWithMinBaseFee
* use flatten() (lowercase) to avoid copying of tx list
* chore: auto version bump [bot]
---------
Co-authored-by: jonastheis <jonastheis@users.noreply.github.com>