polkadot-evm / frontier

Ethereum compatibility layer for Substrate.
Apache License 2.0
552 stars 455 forks source link

Show block author #1438

Open victormunoz opened 1 month ago

victormunoz commented 1 month ago

I have created a new substrate blockchain using the frontier node template. https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Falice.ekratos.cat#/explorer Everything works, but in the Polkadot portal, the recent blocks only show the block number and hash, but do not show the block author (like I see in all other networks). Why?

koushiro commented 1 month ago

@victormunoz I think this is caused by polkadot-apps, you need to register your chain as ethereum type

See https://github.com/polkadot-js/apps/blob/master/packages/apps-config/src/settings/ethereumChains.ts for details.

Hmm, I see you already use the frontier-template as the runtime name for your chain(although I don't recommend doing this), so polkadot-apps has treated your chain as ethereum chain . That's weird.

koushiro commented 1 month ago

The current frontier template also has this problem, now I'm not sure if it's caused by some configs of polkadot-apps.

victormunoz commented 1 month ago

My question is why I don't see the block author in the recent blocks table. Are you sure you are answering this? In stackexchange someone answered that this is related to the authorship-pallet that is missing: https://substrate.stackexchange.com/questions/11470/show-block-author/ This makes more sense to me, but I still don't know how to add this pallet to Frontier.