Closed onikonychev closed 2 months ago
The changes primarily focus on eliminating deprecated and unused Ethereum JSON-RPC APIs and Proof of Work (PoW) functionalities. This involves removing several methods related to miner operations and personal account management from various backend components and refactoring test cases. This cleanup reflects a shift towards post-merge Ethereum (Proof of Stake) and modernizing the codebase by discarding outdated APIs and practices.
File | Change Summary |
---|---|
CHANGELOG.md | Documented the new chore task for removing deprecated EVM APIs: miner, personal. |
app/server/config/server_config.go | Removed "miner" namespace from the available JSON-RPC API namespaces. |
eth/rpc/backend/backend.go | Removed multiple methods from EVMBackend interface: SetEtherbase , SetGasPrice , etc. |
eth/rpc/backend/chain_info.go | Deleted GetCoinbase function; added FeeHistory function. |
eth/rpc/backend/chain_info_test.go | Removed TestGetCoinbase ; added TestSuggestGasTipCap . |
eth/rpc/backend/node_info.go | Removed SetEtherbase , SetGasPrice functions; refactored related logic. |
eth/rpc/backend/node_info_test.go | Deleted TestSetGasPrice , TestSetEtherbase ; modified TestListAccounts , TestSyncing . |
eth/rpc/rpcapi/apis.go | Removed EthereumNamespaces function and NamespaceMiner implementation. |
eth/rpc/rpcapi/eth_api.go | Removed PoW related methods from IEthAPI : Hashrate , Mining , Coinbase , Sign . |
x/evm/keeper/msg_server.go | Updated to remove coinbase address explanation; adjusted for post-merge Ethereum (Proof of Stake). |
In code's vast realm, a shift we see, Old miners and methods, let them be. Proof of Stake now takes the stage, A refined, modern, Ethereum age. APIs streamlined, clean and bright, Progress shines in digital light.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 65.32%. Comparing base (
1b758bb
) to head (fb7bdde
).
Summary by CodeRabbit
New Features
FeeHistory
function for fee estimation based on block range.Refactor
miner
andpersonal
.SetEtherbase
,SetGasPrice
, andCoinbase
.Tests
Chores