Skip to content

Create compact block RPCs to allow compact passing of block proposals #338

@instagibbs

Description

@instagibbs

A functionary layer should be in charge of passing around proposals and finalized blocks, and an important part is taking advantage of the already-built compact block machinery.

All ignoring "PoW checks":

getcompactsketch -> binary format in hex
consumecompactsketch -> fill in sketch as much as possible, return hex if complete, otherwise return list of missing indices
getgetblocktxn -> binary format in hex
consumegetblocktxn -> fills in sketch, returns complete block if complete, error otherwise

Other improvements to improve sync:
prefill transactions up to limit:

  • most recent txns

Don't include transactions in block less than X seconds old (already merged)

fixed in #410

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions