near-explorer icon indicating copy to clipboard operation
near-explorer copied to clipboard

Show Chunk information in Block page

Open ilblackdragon opened this issue 4 years ago • 2 comments

Currently there is absolutely no information about chunks / shards.

We should show summary of chunk information in the Block page: group tx by chunk in the details and show for each chunk total tx count, gas spent, gas limit, rent paid and other meta data available in ChunkHeader.

ilblackdragon avatar Feb 19 '20 04:02 ilblackdragon

Note: we need a visual design for that.

We need to review what the current Chunk model misses from the Chunk Header available from RPC.

Chunk model contains:

  • block hash
  • shard id (integer index)
  • signature
  • gas limit
  • gas used
  • height created
  • height included

Chunk header contains (e.g. http post https://rpc.nearprotocol.com/ jsonrpc=2.0 id=dontcare method=chunk 'params:=[[1, 1]]'):

  • shard id
  • ~chunk hash~ (does not seem very useful to me in Explorer)
  • signature
  • gas limit
  • gas used
  • height created
  • height included
  • encoded length
  • encoded merkle root
  • balance burnt
  • outcome root
  • outgoing receipts root
  • ~previous block hash~ (does not seem very useful to me in Explorer)
  • ~previous state root~ (does not seem very useful to me in Explorer)
  • rent paid
  • tx root
  • validator proposals
  • validator reward

frol avatar Feb 19 '20 15:02 frol

CC @jakestutzman @corwinharrell for design for this.

ilblackdragon avatar Feb 19 '20 22:02 ilblackdragon