问题
在Clique共识下,查看block
eth.getBlockByNumber(1000);
返回数据中miner为0x地址
miner: "0x0000000000000000000000000000000000000000",
解决
对于Clique共识查看某个区块的miner,通过getSignersAtHash
查看
clique.getSignersAtHash("0xec6058d9364569e92a7e7c19889fa4daf86111ddf29dfcd6993be697b1cdd553")
["0x0eb7365be3c1fa53fe6ad8080c723def2a4cbb9f", "0x45d959f955e6ba85c03d1131e8e6efbf7061b6ec", "0x48f58ba03e2bfe0f84813184ba605c530ce333d5", "0x57fa14bde7440f47f3a9ddc854c1281d1b7a2fc5", "0x5cd8f88f97ead6f84957cf5a2c80db33da53a8c7"]
对于blockscout浏览器显示0x问题,需要首次启动前,修改docker-compose/envs/common-blockscout.env
BLOCK_TRANSFORMER=clique
引用
https://github.com/blockscout/blockscout/issues/1990
https://github.com/ethereum/go-ethereum/issues/15651
版权属于:区块链中文技术社区 / 转载原创者
本文链接:https://bcskill.com/index.php/archives/1894.html
相关技术文章仅限于相关区块链底层技术研究,禁止用于非法用途,后果自负!本站严格遵守一切相关法律政策!