Skip to content
This repository was archived by the owner on Feb 23, 2022. It is now read-only.
This repository was archived by the owner on Feb 23, 2022. It is now read-only.

BlockID: Consider ways to remove PartsHeader #78

Closed

Description

@ebuchman

When a proposer proposes a block, they serialize the block, split it into equal sized chunks (we call them "parts"), and gossip those parts. The BlockID is then defined as the normal block header hash, plus a PartsHeader, which includes the number of parts and their Merkle root. The PartsHeader is a commitment to this gossip mechanism, and is signed in both the proposal and the votes as part of the BlockID. See BlockID.

Outside the real-time consensus protocol (ie. for someone who just wants the blockchain like a light client), the PartsHeader is pretty useless, so it's inclusion is a bit of an unfortunate artifact. To remove it would require some change to the mechanism in the consensus reactor for gossipping block parts. Would be really nice to have this separation, and reduce the BlockID to just the block header hash, but need to be careful doing it.

One possible idea is to chunk the block using it's existing structure. So rather than serializing into bytes and chunking arbitrarily, we'd have the header be one chunk, the transactions be a set of chunks but chunked using their existing merkle tree structure, and so on. Then the main block header hash could be still be used for secure gossipping of chunks.

Activity

  1. ValarDragon commented on Feb 10, 2020

    @ValarDragon
    Contributor

    There are significantly more efficient ways to gossip tx data then just plain chunking the txs. (Using erasure codes) It would be ideal if these changes can be done with only breaks to p2p version, not block version.

    I believe this can be done. If we do something along the lines of https://github.com/tendermint/tendermint/issues/2530, you can just throw in into that MT, which the light clients don't need / don't pay for, but is available to the validators.

  2. musalbas commented on Feb 10, 2020

    @musalbas

    Instead of have a consensus-critical Merkle root of transactions, why not just have a consensus-critical Merkle root of fixed-sized erasure coded data chunks? Light clients can still efficiently get proofs of transaction inclusion from them, but there's slightly more overhead. See section 4.3 in https://arxiv.org/pdf/1809.09044.pdf for an example of this.

  3. ebuchman commented on Feb 10, 2020

    @ebuchman
    ContributorAuthor
  4. added
    C:core
    T:research
    C:consensus
    on Sep 30, 2020
  5. cmwaters commented on Feb 21, 2022

    @cmwaters
    Contributor

    I'm going to close this and link it to the more recent issue described here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C:consensusC:coreT:research

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions