web3j icon indicating copy to clipboard operation
web3j copied to clipboard

Impact of removing totalDifficulty from block info

Open makkanlover opened this issue 2 years ago • 2 comments

The go-ethereum release notes v1.14.11 suggest that totalDifficulty will be removed from the Block parameters. https://github.com/ethereum/go-ethereum/pull/30386

I apologize if I'm wrong, but I think that if this release is applied, block information may not be available through web3j.

Actual implementation https://github.com/hyperledger/web3j/blob/86df48c8414513f6b3109ce8e783bd2c724a9fa4/core/src/main/java/org/web3j/protocol/core/methods/response/EthBlock.java#L329

I would like to know if the removal of totalDifficulty will have any impact, and if so, when the issue will be addressed.

makkanlover avatar Oct 09 '24 02:10 makkanlover

I used this endpoint to check whether it would still work even if totalDifficulty was gone. https://ethereum-sepolia-rpc.publicnode.com

As a result, it worked without any problems, so I will close this issue.

makkanlover avatar Oct 18 '24 01:10 makkanlover

java.lang.RuntimeException: com.alibaba.fastjson.JSONException: write javaBean error, fastjson version 1.2.83, class org.web3j.protocol.core.methods.response.EthBlock$Block, method : getTotalDifficulty

zhanxin-xu avatar Dec 20 '24 06:12 zhanxin-xu